-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AWS ECR Policy - need to run terraform apply twice #545
Comments
This works *most* of the time, but there's a bug in terraform that causes the ECR policy to fail sometimes. hashicorp/terraform-provider-aws#545 co-authored-by: Paul Linville <[email protected]>
This works *most* of the time, but there's a bug in terraform that causes the ECR policy to fail sometimes. hashicorp/terraform-provider-aws#545 co-authored-by: Paul Linville <[email protected]>
This works *most* of the time, but there's a bug in terraform that causes the ECR policy to fail sometimes. hashicorp/terraform-provider-aws#545 co-authored-by: Paul Linville <[email protected]>
The same also happens for a Error:
|
This works *most* of the time, but there's a bug in terraform that causes the ECR policy to fail sometimes. hashicorp/terraform-provider-aws#545 co-authored-by: Paul Linville <[email protected]>
@jasonmc86 Do you have a workaround until this gets fixed? |
Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label. If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you! |
This has been released in version 3.34.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
This issue was originally opened by @vikas027 as hashicorp/terraform#12108. It was migrated here as part of the provider split. The original body of the issue is below.
Terraform Version
~$ terraform -v Terraform v0.8.7
Affected Resource(s)
Terraform Configuration Files
Debug Output
First Run
terraform apply
(fails)Second Run
terraform apply
(succeeds)Expected Behavior
terraform apply
should not complain about the policy.Actual Behavior
terraform apply
complains about invalid policy on the first run. And then creates ECR policy in the second run.I have tried to set resource dependencies using
depends_on
in vain, behavior is same without this parameter.Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
(throws an error)terraform apply
(run okay this time)References
Few other similar issues where terraform does not wait for enough time or AWS reports that the resource creation is complete (a false positive)
The text was updated successfully, but these errors were encountered: