-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Importing IAM service account to google_sql_user fails #9760
Comments
This also happens for "actual" IAM users which aren't service accounts. |
I believe that pinning the provider version to |
Can confirm that pinning to 3.77.0 did let me import IAM Cloud SQL users. Also forgot to mention in my first comment that this bug in fact breaks existing configurations, because the provider can not find accounts on the instance, tries to create them, and eventually complains about not finding the accounts it just "created". |
@megan07 @slevenick this PR GoogleCloudPlatform/magic-modules#4984 likely caused this and #9723 |
Deduping to #9723, since they appear to be the same issue |
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
Expected Behavior
tf import google_sql_user.sql_backend_access <project-id>/<instance>/some-backend@<project-id>.iam
imports the service account.Actual Behavior
It fails to following error:
Steps to Reproduce
All of the following fails:
tf import google_sql_user.sql_backend_access project/<project-id>/<instance>/some-backend@<project-id>.iam
tf import google_sql_user.sql_backend_access project/<project-id>/<instance>/<actual-unique-iam-id>
tf import google_sql_user.sql_backend_access project/<project-id>/<instance>/some-backend
Important Factoids
E: The above error actually might also happen in some cases even when creating totally new IAM service account users. The accounts get created but terraflrm errors out and it's not possible to recover from it since importing is broken.
The text was updated successfully, but these errors were encountered: