-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Bucket resource returns as completed before it actually exists #6212
Bucket resource returns as completed before it actually exists #6212
Comments
I tried few times its not happening for me, however i have seen that happening for other users. |
Maybe instead of simply GETting the bucket, you could issue a strongly-consistent operation like listing the bucket contents or something? https://cloud.google.com/storage/docs/consistency |
Additionally, if it's determined that the existing behavior should be strongly consistent, we should open an Issue Tracker issue because this is likely a regression that others will have problems with. |
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. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks! |
Community Note
modular-magician
user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned tohashibot
, a community member has claimed the issue already.Terraform Version
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
I should be able to add permissions (IAM members) to the bucket in the same
terraform apply
as the bucket is created.Actual Behavior
An error is generated when the IAM permissions are applied:
If you attempt to apply immediately after this error is received, it works fine. This indicates that bucket creation is eventually consistent and the resource does not properly verify the bucket fully exists before continuing. This is new behavior, possibly introduced to the GCS service in the past week or two, it was working fine previously. I am working around right now by using a local-exec provisioner that sleeps for 10 seconds, but this is an ugly hack that the resource itself should take care of.
Steps to Reproduce
terraform apply
The text was updated successfully, but these errors were encountered: