Skip to content
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

disk_size variable is only used at instance creation #318

Open
philip-harvey opened this issue Jul 5, 2022 · 5 comments
Open

disk_size variable is only used at instance creation #318

philip-harvey opened this issue Jul 5, 2022 · 5 comments
Assignees
Labels
backlog enhancement New feature or request triaged Scoped and ready for work

Comments

@philip-harvey
Copy link

TL;DR

disk_size variable is only used at instance creation. Subsequent changes to the disk size are ignored.

Expected behavior

Increasing disk size passed to the module should increase the disk size of the instance if disk__autoresize is false.
Decreasing disk size passed to the module should delete and recreate the instance if deletion_protection is set to false

Observed behavior

disk_size is ignored by the module

Terraform Configuration

disk_size = 100
disk_autoresize = false

Terraform Version

Tested with Terraform 1.2.3

Additional information

Issue was previously reported as #148 and was closed without being fixed

@philip-harvey philip-harvey added the bug Something isn't working label Jul 5, 2022
@github-actions
Copy link

github-actions bot commented Sep 3, 2022

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

@github-actions github-actions bot added the Stale label Sep 3, 2022
@philip-harvey
Copy link
Author

Not stale

@github-actions github-actions bot removed the Stale label Sep 5, 2022
@github-actions
Copy link

github-actions bot commented Nov 4, 2022

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

@github-actions github-actions bot added the Stale label Nov 4, 2022
@g-awmalik g-awmalik self-assigned this Nov 9, 2022
@g-awmalik g-awmalik added enhancement New feature or request triaged Scoped and ready for work backlog and removed bug Something isn't working labels Nov 9, 2022
@g-awmalik
Copy link
Contributor

@philip-harvey - this is reasonable and I've added this to the backlog. However, if you're able to create a PR for us to review, that sure will speed things up. Thanks.

@github-actions github-actions bot removed the Stale label Nov 9, 2022
@g-awmalik
Copy link
Contributor

g-awmalik commented Sep 19, 2023

Dependent on hashicorp/terraform#24188.

Since Cloud SQL can auto-size the disk space, we'll need to set ignore changes in the lifecycle block dynamically so it continue to ignore it when disk_autoresize is set to true and honors the change when it is false.

Until dynamic blocks are support for lifecycle, we'll need to continue to ignore changes to the disk size.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog enhancement New feature or request triaged Scoped and ready for work
Projects
None yet
Development

No branches or pull requests

2 participants