-
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
Spanner 400 error when updating instance's processing_units #9908
Spanner 400 error when updating instance's processing_units #9908
Comments
Hi @angelchang ! Thanks for reporting this and suggesting a change! It looks great, however, that file is generated from magic-modules, so you'll want to update it here instead: https://github.com/GoogleCloudPlatform/magic-modules/blob/master/mmv1/templates/terraform/encoders/spanner_instance_update.go.erb I'll assign this issue to you for now, but let me know if you can't make that change and I can update it there instead. Thanks again! |
Thanks for the quick review @megan07 ! |
Updating terraform provider version again due to hashicorp/terraform-provider-google#9908. This issue is resolved in the latest version, so it is now possible to scale the instance using terraform with processing units.
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)
resource "google_spanner_instance"
Terraform Configuration Files
Eg: on an existing instance with 300 processing units, change processing units
Debug Output
https://gist.github.com/angelchang/09fc19775f9f4a2a1bd70ab2db679470
Expected Behavior
Instance should be updated with processing units = 100
Actual Behavior
400 Error updating Instance "ac-test-sandbox/test-successful-instance": googleapi: Error 400: Invalid UpdateInstance request, Must specify a non-empty field mask
Steps to Reproduce
terraform apply
Investigation
Looks like the provider isn't adding changes to processing_unit to the fieldmask. Made changes here: angelchang@80b1fdc which resolves the issue.
Happy to submit a PR if that looks good.
The text was updated successfully, but these errors were encountered: