hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.84k stars 9.19k forks source link

[Bug]: aws_acm_certificate data source holds up for a full minute on non-existent certificates #38339

Open syskill opened 4 months ago

syskill commented 4 months ago

Terraform Core Version

1.8.5

AWS Provider Version

5.57.0

Affected Resource(s)

Expected Behavior

The build plan should fail immediately.

Actual Behavior

The build plan hangs for 60 seconds.

Relevant Error/Panic Output Snippet

No response

Terraform Configuration Files

data "aws_acm_certificate" "nonesuch" {
  domain = "nonesuch.example.com"
  most_recent = true
}

Steps to Reproduce

terraform plan

Debug Output

No response

Panic Output

No response

Important Factoids

Seems like this behavior was introduced in commit 8a307d3. Due to the lack of any commit message or comments around the code, I can't tell what purpose the retry loop is supposed to serve. In any case the long timeout presents some difficulties for our build system.

References

No response

Would you like to implement a fix?

None

github-actions[bot] commented 4 months ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue