-
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 Cloud SQL Instance cannot be modified after deployment with collation #10959
Google Cloud SQL Instance cannot be modified after deployment with collation #10959
Comments
The request Terraform sends to the API looks as far as I'm concerned. It seems like an API bug that collation would be an invalid key for the update request, especially considering it is not even the field updating. I'll bubble this up to the API team. In the meantime, it seems like you will not be able to perform this update via terraform. You could perform it using another method like gcloud, and then reimport the resource. |
for internal folks: b/216858127 |
Hi @c2thorn, Thanks for the response. Thank you very much. |
Hi @c2thorn, what is the outcome of your talk to the API team? We use this module in an enterprise environment and having the ability to change the collation is crucial to us. |
Hi @c2thorn , today I checked with When the ╷
│ Error: Error, failed to update instance settings for : googleapi: Error 400: Invalid request: Unsupported setting key: collation., invalid
│
│ with module.generator.google_sql_database_instance.obfuscated,
│ on ../../modules/ssq02-edit/main.tf line 2, in resource "google_sql_database_instance" "obfuscated":
│ 2: resource "google_sql_database_instance" "obfuscated" {
│
╵ Is there any update regarding this issue? |
API team closed my request stating working as intended. The provider |
Could you please clarify. Does this mean that the API will accept the unchanged collation field in any update request without error. The user just has to update the Google Terraform Provider to the latest version to have this fix in place? |
@suckowbiz Apologies, I edited the comment. The API will still not accept the unchanged collation field. The provider resource code will need a workaround. |
HI @c2thorn, thank you for reply. To be forced to remove the collation field from any further update requests is contrary to an enterprise automation approach to me. Sending the request that created the DB instance a second time would lead to the above describe API error. From my point of view the following behavior would be desired:
For our client this is a great drawback when implementing a automated CI/CD approach in an enterprise manner use of Google Cloud. |
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
This is the basic configuration:
Would be changed in:
Debug Output
https://gist.github.com/menzbua/f51f064ecfed684513f58491c528b41c
Panic Output
│ Error: Error, failed to update instance settings for : googleapi: Error 400: Invalid request: Unsupported setting key: collation., invalid
│
│ with google_sql_database_instance.ssq0edad6n,
│ on main.tf line 1, in resource "google_sql_database_instance" "ssq0edad6n":
│ 1: resource "google_sql_database_instance" "ssq0edad6n" {
│
Expected Behavior
Google Cloud SQL instance type SQL-Server can be modified when it is already deployed. This happens when you try to modify an instance with the parameter
collation
enabled.Actual Behavior
Google Cloud SQL Instance type SQL-Server can not be modified when it is already deployed.
Steps to Reproduce
collation
configuredterraform apply
require_ssl
terraform apply
The text was updated successfully, but these errors were encountered: