-
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
maintenance_window of google_sql_database_instance replica is stuck - not changing / updating / refreshing #7422
Comments
@syedrakib can you post your config and the steps to reach the issue? |
I used the v3.2.0 of the terraform-google-sql-db / mysql module for my work. It is these lines that are causing the issue. Please note that, even though its providers.tf file says it uses The fact that running |
@syedrakib instead of module, can you run a single instance by removing unrelated field? Please provide the full debug log, if the problem still occurs. |
@syedrakib is this still an issue? |
@syedrakib closing this as no response received. Please retested by separating the provider code from the module. Feel free to reopen it if the issue can be reproed. |
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 👉 hashibot-feedback@hashicorp.com. Thanks! |
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)
google_sql_database_instance
The issue:
My current TF state file shows the following for my Google CloudSQL Replica instance.
maintenance_window: []
My new TF configuration for my Google CloudSQL Replica instance is
✅ My TF Plan reads fine:
❌ I run
terraform apply
. I get the following error❌ Meaning, the operation failed and nothing should've changed. But when i check my TF state file, i see that it has changed
❌ The state file shouldn't have changed since the
terraform apply
had failed.Now, when i run the
terraform plan
, it produces the same unaltered plan as before.❓ I am not able to move beyond this. My CloudSQL ReadReplica is constantly producing this same plan and I am constantly getting a 400 error when trying to
terraform apply
. Hence, i can't proceed.I also tried to set the
maintenance_window
of the instance manually from the GCP console. However, GCP doesn't even provide any interface to modifymaintenance_window
for ReadReplica instances - which is why the 400 error in the first place.Looking for help here. Using latest 0.12.x version of Terraform 0.12.29, and latest version of google provider 3.41.0
The text was updated successfully, but these errors were encountered: