question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DB Instance: can't ignore changes to 'diskSize' - blocks all updates to DB instance with diskAutoresize: true

See original GitHub issue

Cloud 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

  1. Create db instance with empty diskSize (will default to 10), diskAutoresize: true and ignoreChanges: [ "diskSize" ]
  2. Insert enough data into db to cause autoresize to increase db disk size over the default 10 GB
  3. Change any configuration value for that db instance and try to apply it

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:1
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
sbjorncommented, Oct 31, 2022

Passing ignore_changes=['settings.diskSize'] works well on my end. (Definitions written in python)

0reactions
gunarcommented, Oct 20, 2022

Same problem here. As @thomas-gallop mentioned, using --refresh fixes this.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found