Apply should wait for wait_for_capacity_timeout amount of time before failing with an error.
Actual Behavior
Apply is almost immediately failing with an error. 1 minute instead of 10 minutes for example
Relevant Error/Panic Output Snippet
Error: waiting for Auto Scaling Group (<blah>) capacity satisfied: scaling activity (<blah>): Failed: We currently do not have sufficient g5.12xlarge capacity in the Availability Zone you requested (us-east-1b). Our system will be working on provisioning additional capacity. You can currently get g5.12xlarge capacity by not specifying an Availability Zone in your request or choosing us-east-1a, us-east-1c, us-east-1d, us-east-1f. Launching EC2 instance failed.
│
│ with aws_autoscaling_group.<blah>,
│ on ec2.tf line 179, in resource "aws_autoscaling_group" "<blah>":
│ 179: resource "aws_autoscaling_group" "<blah>" {
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
Volunteering to Work on This Issue
If you are interested in working on this issue, please leave a comment.
If this would be your first contribution, please review the contribution guide.
Terraform Core Version
1.5.7
AWS Provider Version
5.18.1
Affected Resource(s)
aws_autoscaling_group
Expected Behavior
Apply should wait for
wait_for_capacity_timeout
amount of time before failing with an error.Actual Behavior
Apply is almost immediately failing with an error. 1 minute instead of 10 minutes for example
Relevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
Debug Output
No response
Panic Output
No response
Important Factoids
I believe this bug was previously reported, but then fixed and closed. Maybe it has resurfaced? Old bug: https://github.com/hashicorp/terraform-provider-aws/issues/29753
References
No response
Would you like to implement a fix?
No