Open
Description
Terraform and AWS Provider Version
Terraform: 1.5.0
AWS provider: 5.2.0
Affected Resource(s) or Data Source(s)
aws_instance
Expected Behavior
Upon encountering an InsufficientVolumeCapacityError, terraform should fail or alternatively retry until the default timeout of 10 minutes is hit.
Actual Behavior
Terraform attempts to retry provisioning the instance for 1 hour until it finally fails.
This behavior is consistent with what has previously been reported for InsufficientInstanceCapacity:
- Creating aws_instance when there is no capacity should fail faster #15183
- Timeouts setting is not respected when InsufficientInstanceCapacity occur #14403
- aws_instance ignores timeout settings when AWS has "Insufficient capacity" errors #23928
- AWS not enough capacity error message #1496
For InsufficientInstanceCapacity this behavior was fixed in #21293.
Sample Terraform Configuration
Any terraform config that deploys an EC2 instance with an EBS disk attached.
Steps to Reproduce
This is challenging to reproduce given that it requires AWS to report an InsufficientVolumeCapacityError. The best way to reproduce this is likely to mock the calls to AWS and make them report an InsufficientVolumeCapacityError.
Would you like to implement a fix?
No