-
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
google_storage_bucket_iam_member: constantly add IAM permission to bucket without updating tfstate #1722
Comments
To clarify, it looks like this is related to IAM membership (not ACLs) which are actually two separate permission systems. |
Would it be possible to get a debug log for an apply of this? That would help get to the bottom of what's happening here. |
The full debug log contains more than 10k lines, and sensitive information may be present, do you have a specific part you might need for me to adapt it? |
@Doritos250, the various POST and GET requests and their contents would be ideal. Are you working with @morgante? If so, feel free to send the logs to him and he'll forward them to me. |
I used to get a similar issue until I checked the state of the bucket, turns out on top of the bucket ACL in the state there was " "OWNER:project-owners-XXXXXXXX". I added this ACL member in my code at the top and the error message disapeared. |
Hey @jmg87, have you encountered this in a recent version of the provider / was that issue recently? |
Closing as stale. |
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! |
Hi there,
Terraform Version
Terraform version: 0.11.7
Affected Resource(s)
Please list the resources as a list, for example:
Terraform Configuration Files
Debug Output
The last line printed after a terraform apply command
Expected Behavior
When I run terraform apply, it prints out that IAM permission authorizing the group [email protected] as Object Admin to bucket test-export will be added
Actual Behavior
Every time I run terraform apply, it asks me again to add the same IAM permission to the same bucket.
However, the rule has been successfully added to the GCS bucket, even if I manually delete it then use terraform apply command it will be added again but not in terraform state...
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
terraform apply
The same output will appear
References
Are there any other GitHub issues (open or closed) or Pull Requests that should be linked here? For example:
The text was updated successfully, but these errors were encountered: