Open gdavison opened 4 months ago
Voting for Prioritization
Volunteering to Work on This Issue
In the past I've addressed this by adding explicit dependencies to the aws_batch_compute_environment
, e.g.
depends_on = [
aws_iam_role_policy_attachment.batch_service_role,
aws_iam_role_policy_attachment.batch_service_ecs_policy,
]
…but recently I've been seeing this same failure intermittently even with those in place.
Terraform Core Version
N/A
AWS Provider Version
5.53.0
Affected Resource(s)
aws_batch_compute_environment
Expected Behavior
When a new IAM role is used with a new Batch Compute Environment, it should succeed
Actual Behavior
When a new IAM role is used with a new Batch Compute Environment, there is sometimes a race condition with IAM propagation, which returns the error
Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
Any Compute Environment acceptance test
Steps to Reproduce
Run any Compute Environment acceptance test
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
None