File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # 0.13.7 (Mar 17, 2025)
2+ * Added support for storage auto-scaling.
3+
14# 0.13.6 (Aug 07, 2024)
25* Upgraded CA Certificate for RDS instance.
36
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ resource "aws_db_instance" "this" {
1414 instance_class = var. instance_class
1515 multi_az = var. high_availability
1616 allocated_storage = var. allocated_storage
17+ max_allocated_storage = var. max_allocated_storage
1718 storage_encrypted = true
1819 storage_type = " gp2"
1920 port = local. port
Original file line number Diff line number Diff line change 1818variable "allocated_storage" {
1919 type = number
2020 default = 10
21- description = " Allocated storage in GB"
21+ description = << EOF
22+ The storage in GiB to reserve for the RDS instance.
23+ If max_allocated_storage is enabled, this argument represents the initial storage allocation.
24+ While auto-scaling is enabled, changes to allocated_storage are ignored.
25+ EOF
26+ }
27+
28+ variable "max_allocated_storage" {
29+ type = number
30+ default = 0
31+ description = << EOF
32+ This sets the maximum amount of storage in GiB that autoscaling will increase the RDS instance storage.
33+ Auto-scaling is *only* enabled if max_allocated_storage > allocated_storage.
34+ When enabled, allocated_storage is only used for setting the initial storage size.
35+ EOF
2236}
2337
2438variable "backup_retention_period" {
You can’t perform that action at this time.
0 commit comments