-
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_sql_user fails with Root was present, but now absent if host value is set and cloudsql instance is Postgres #11365
google_sql_user fails with Root was present, but now absent if host value is set and cloudsql instance is Postgres #11365
Comments
#11488#issuecomment-1099792809 - Adding a delay before creating SQL User worked for me as it allows time to get DB prepared and come online. |
The bug here is that if you don't specify |
this is still an issue. I've noticed that on my machine with the latest provider i'm still sending host to the server. it's not set in terraform and the docs say to not set this for postgres. Should this be sending
and then in terraform
it should be noted that my google_sql_database_instance is postgres and I'm able to establish types of CLOUD_IAM_SERVICE_ACCOUNT just fine. |
fix hashicorp/terraform-provider-google#11365 Signed-off-by: Modular Magician <magic-modules@google.com>
fix hashicorp#11365 Signed-off-by: Modular Magician <magic-modules@google.com>
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
Debug Output
https://gist.github.com/chasinglogic/10ccfc765fd32096067fa6e598c3dd40
Expected Behavior
Any one of the following behaviours would be acceptable IMO:
host
config and provision the userThis was a hard to debug issue since there wasn't any obvious information about why it was happening.
Actual Behavior
Terraform produces the "Root resource was present, but now absent" error message. Indicating it might be a bug in the provder.
Steps to Reproduce
terraform apply
the given example terraformImportant Factoids
None, this was reproduced on a fresh GCP project and instance from scratch using the given example Terraform.
I'd be happy to implement the chosen solution but feel it's important to understand whether the silent acceptance or rejection would be the preferred solution first.
The text was updated successfully, but these errors were encountered: