DB Instance: can't ignore changes to 'diskSize' - blocks all updates to DB instance with diskAutoresize: true
See original GitHub issueCloud SQL (PostgreSQL) instance created with diskAutoresize: true and empty diskSize will fail to update if autoresize has increased storage size beyond the default 10 GB, even if ignoreChanges: [ "diskSize" ] :
Error, failed to update instance settings for : googleapi: Error 400: Invalid request: The disk size cannot decrease. Current size: 37 GB, requested: 10 GB.., invalid
pulumi v2.23.1
pulumi-gcp 4.15.0
Expected behavior
ignoreChanges allows to ignore a change to diskSize that got increased by GCP because of diskAutoresize: true
Current behavior
ignoreChanges: [ "diskSize" ] doesn’t cause diskSize changes to be ignored
Steps to reproduce
- Create db instance with empty
diskSize(will default to 10),diskAutoresize: trueandignoreChanges: [ "diskSize" ] - Insert enough data into db to cause autoresize to increase db disk size over the default 10 GB
- Change any configuration value for that db instance and try to apply it
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Modifying an Amazon RDS DB instance - AWS Documentation
In the navigation pane, choose Databases, and then choose the DB instance that you want to modify. Choose Modify. The Modify DB instance...
Read more >SQLInstance | Config Connector Documentation - Google Cloud
The availability type of the Cloud SQL instance, high availability (REGIONAL) or single zone (ZONAL). For all instances, ensure that settings.
Read more >Resource: aws_db_instance - hashicorp - Terraform Registry
Changes to a DB instance can occur when you manually change a parameter, ... Enable low-downtime updates by setting blue_green_update.enabled to true ....
Read more >Unable to ignore changes to RDS minor engine version #1198
We are using the aws_db_instance resource for managing RDS instances and I just came across an issue that arises from the use of ......
Read more >Manage AWS RDS Instances | Terraform - HashiCorp Developer
skip_final_snapshot : Set to true to disable taking a final backup when you destroy the database later in this tutorial. You can review...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Passing
ignore_changes=['settings.diskSize']works well on my end. (Definitions written in python)Same problem here. As @thomas-gallop mentioned, using
--refreshfixes this.