-
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_cloud_run_v2_service: Apply fails always the first time, second time succeeds #16350
Comments
While IAM eventual consistency will make this continue to fail 80+% of the time, one trick we use is to make the service e.g. resource "google_cloud_run_v2_service" "default" {
depends_on = [google_service_account_iam_member. github-actions-sa-actAs]
...
} Technically without this the |
Did you find any way to avoid this permission failure? |
Accounting for IAM propagation delays may also require dependencies on time_sleep resources |
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. |
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
Var-File:
Debug Output
https://gist.github.com/MaxDaten/fb51af1741953acfed1505fbb63d4a4b
Expected Behavior
Apply should succeed
Actual Behavior
Fails on first apply, succeeds on second run:
Steps to Reproduce
terraform apply -var-file=vars.json
(fails)terraform apply -var-file=vars.json
successfulImportant Factoids
using a service account configured like this:
b/307707059
The text was updated successfully, but these errors were encountered: