AWS have announced auto scaling of storage for some RDS instance types.
https://aws.amazon.com/about-aws/whats-new/2019/06/rds-storage-auto-scaling/
I'm curious how this will look like on plans if the AWS storage has diverged from your initial defined storage for the RDS instance?
@mwarkentin presumably Terraform will show a difference for the argument unless ignore_changes
is used, e.g.
resource "aws_db_instance" "example" {
allocated_storage = 123
# ... other configuration ...
# Prevent RDS storage auto scaling from recreating the resource
lifecycle {
ignore_changes = ["allocated_storage"]
}
}
When this feature is implemented, we will likely want to add this to the resource documentation.
Speaking of implementation, I don't mind picking this one up right now since no one has yet. ๐
It looks like this will be a new max_allocated_storage
argument, where storage autoscaling is enabled if it is configured:
resource "aws_db_instance" "example" {
allocated_storage = 100
max_allocated_storage = 200
# ... other configuration ...
}
Given this implementation, we might be able to ignore the allocated_storage
argument differences automatically within the resource if max_allocated_storage
is defined.
Ah nice, I think that makes sense.
Pull request submitted: #9087
Support for the new max_allocated_storage
argument has been merged and will release with version 2.17.0 of the Terraform AWS Provider, likely later today. ๐
This has been released in version 2.17.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.
For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks!
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.
If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!
Most helpful comment
Speaking of implementation, I don't mind picking this one up right now since no one has yet. ๐