aws_codebuildproject requires two "applys" when created with a new IAM role #11741
Labels
regression
Pertains to a degraded workflow resulting from an upstream patch or internal enhancement.
service/codebuild
Issues and PRs that pertain to the codebuild service.
Milestone
Community Note
Terraform Version
Affected Resource(s)
Terraform Configuration Files
A terraform apply with this module demonstrates the issue - https://github.com/tmknom/terraform-aws-codebuild/tree/master/examples/complete
Expected Behavior
First
terraform apply
creates the codebuild project successfully.Actual Behavior
The first
terraform apply
errors with this messageRunning
terraform apply
again resolves the issue.Steps to Reproduce
terraform apply
terraform apply
Important Factoids
Creating the iam_role and waiting a few seconds seems to resolve this issue. However, that seems to defeat the purpose of a well-contained module.
References
My best guess is that this is related to the following IAM eventual consistency issues.
The text was updated successfully, but these errors were encountered: