-
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_database_instance "collation" option is not supported on mysql (and postgres) instances #9945
Comments
@suckowbiz It is in v3.82.0 which was released 18 hours ago. Can you checkout with that version? |
Sorry, I introduced a typo. I tested with v3.82.0. (I updated my description above). The issue occured, using v3.82.0! |
@suckowbiz can you post the full debug log? |
I added a gist containing the debug log (https://gist.github.com/suckowbiz/0ff6d86b03c6f066a988f1cefe8edc38) to my initial posting. |
@suckowbiz can you try below config? I think resource "google_sql_database_instance" "smy53928ef" {
name = "issue9945-1"
database_version = "SQLSERVER_2017_STANDARD"
deletion_protection = false
region = "europe-west3"
root_password = "mypassword"
settings {
tier = "db-custom-1-3840"
collation = "Polish_CI_AS"
}
} Here is the api doc that does specify this field but not detailed |
I did that already. The |
I looked a little deeper into this and I think that it is intentional that To change collation of postgres and mysql there is a working option with So in the end it makes sense but is not very intuitive and I think the documentation should be updated to inform about |
@suckowbiz you are right, and agreed with you on the documentation. But the provider's is usually aligned with API's. Closing this issue then |
To avoid another user of the google provider opens the same issue again we could open an issue directly at the place where google api is maintained. Once they updated their documentation the provider docs can be aligned. @edwardmedia Can you provide the repo where the Google APIs are developed. I am going to open an issue then. |
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
$:/# terraform -v Terraform v1.0.5 on linux_amd64
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
The expected behavior is that the collation setting is accepted and processed.
Actual Behavior
Terraform return the error
Error 400: Invalid request: Unsupported setting key: collation.
:Steps to Reproduce
terraform apply
Important Factoids
The
collation
attribute was only correctly accepted when configuring a sql server instance. Both, mysql and postgres failed to accept the collation setting.I tested with provider version:
v3.82.0
:Debug log
https://gist.github.com/suckowbiz/0ff6d86b03c6f066a988f1cefe8edc38
References
The
collation
feature was published with terraform-google-provider v3.82.0 (https://github.com/hashicorp/terraform-provider-google/releases/tag/v3.82.0).Can you confirm this is intentionally working only on sql server?
The text was updated successfully, but these errors were encountered: