Closed robcroteau closed 4 years ago
@robcroteau Terraform is crashing due to null block is passed for database flags. The newer version of terraform and provider have better validation logic in place for database flags and more features.
We can't really fix things on provider 2.x anymore since new features appear in 3.x
Could you please upgrade your terraform and providers versions.
Just so we're on the same page -- Are you asking me to upgrade to version 0.12.x?
Your terraform version - 0.11.14; provider - google-beta 2.20.0
Actually terraform was crashing while running your config and i found the reason for the crash is empty database_flags { }
block which cause the provider/terraform crash. In later version of the provider that case has been take care, terraform plan
doesn't allow empty database_flags block.
With your current versions if you change your variable file to add the required database_flags you can avoid the crash.
sample config
variable database_flags {
description = "List of Cloud SQL flags that are applied to the database server"
default = [{
name = "autovacuum"
value = "true"
},
{
name = "deadlock_timeout"
value = 3000
},
]
}
However we recommend to stay up-to-date with terraform and provider versions to make sure you are getting the latest bug fixes and functionality improvements.
Please let me know if it fixed your crash and i can close the issue.
@robcroteau this issue has been on waiting-response state for quite some time. If the issue is solved shall i close this one ?
Thank you - you can close this. Apologies for the delayed response.
On Wed, Apr 8, 2020 at 11:21 AM venkykuberan notifications@github.com wrote:
@robcroteau https://urldefense.com/v3/__https://github.com/robcroteau__;!!KMgAc2OKcymZ9JjuGNc!60x74T0kQqxB8IhxPvoFWN0jG-STkTSQlntD6ySXa1LPFWXW8bZd-P3WJJGEwxYuTDGJkPbikQ$ this issue has been on waiting-response state for quite some time. If the issue is solved shall i close this one ?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://urldefense.com/v3/__https://github.com/terraform-providers/terraform-provider-google/issues/5506*issuecomment-611021836__;Iw!!KMgAc2OKcymZ9JjuGNc!60x74T0kQqxB8IhxPvoFWN0jG-STkTSQlntD6ySXa1LPFWXW8bZd-P3WJJGEwxYuTDFJV1jtow$, or unsubscribe https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AOI4LYPL3WO7SQOS4DW3ALTRLSJA5ANCNFSM4KME77KA__;!!KMgAc2OKcymZ9JjuGNc!60x74T0kQqxB8IhxPvoFWN0jG-STkTSQlntD6ySXa1LPFWXW8bZd-P3WJJGEwxYuTDFLOtjVUw$ .
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
Terraform v0.11.14
Affected Resource(s)
google_sql_database_instance
Terraform Configuration Files
cloudsql.zip