Skip to content
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

Error: Provided CLOUD_IAM_SERVICE_ACCOUNT: three-tier-app-run-sa@three-tier-app-3438.iam.gserviceaccount.com, does not exist #149

Open
NimJay opened this issue Sep 14, 2024 · 1 comment

Comments

@NimJay
Copy link
Contributor

NimJay commented Sep 14, 2024

  • Here's the full error message:
Error, failed to insert user [email protected] into instance three-tier-app-db-4397: googleapi: 
Error 400: Invalid request: Provided CLOUD_IAM_SERVICE_ACCOUNT: 
three-tier-app-run-sa@three-tier-app-3438.iam.gserviceaccount.com, does not exist., invalid
@NimJay
Copy link
Contributor Author

NimJay commented Sep 14, 2024

Here's another instance (see build logs):

Plan: 8 to add, 0 to change, 0 to destroy.
...
module.three_tier_app.google_service_account.runsa: Creating...
module.three_tier_app.google_service_account.runsa: Creation complete after 1s [id=projects/three-tier-app-3438/serviceAccounts/three-tier-app-run-sa@three-tier-app-3438.iam.gserviceaccount.com]
module.three_tier_app.google_project_iam_member.allrun["roles/cloudsql.instanceUser"]: Creating...
module.three_tier_app.google_sql_user.main: Creating...
...
module.three_tier_app.google_project_iam_member.allrun["roles/cloudsql.instanceUser"]: Creation complete after 7s [id=191467991909/roles/cloudsql.instanceUser/serviceAccount:three-tier-app-run-sa@three-tier-app-3438.iam.gserviceaccount.com]
...
Error 400: Invalid request: Provided CLOUD_IAM_SERVICE_ACCOUNT: three-tier-app-run-sa@three-tier-app-5b26.iam.gserviceaccount.com, does not exist., invalid

I wonder if module.three_tier_app.google_sql_user.main should depend on the Terraform resource for roles/cloudsql.instanceUser...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant