Commit 7d526de6 authored by Henrik's avatar Henrik Committed by Anton Babenko

Support for max_allocated_storage (#146)

* add support for max_allocated_storage

* add support for max_allocated_storage

* add support for max_allocated_storage

* max_allocated_storage into documentation

* changed required type to 'number'
parent 7666a8b9
...@@ -168,7 +168,8 @@ module "db" { ...@@ -168,7 +168,8 @@ module "db" {
| license\_model | License model information for this DB instance. Optional, but required for some DB engines, i.e. Oracle SE1 | string | `""` | no | | license\_model | License model information for this DB instance. Optional, but required for some DB engines, i.e. Oracle SE1 | string | `""` | no |
| maintenance\_window | The window to perform maintenance in. Syntax: 'ddd:hh24:mi-ddd:hh24:mi'. Eg: 'Mon:00:00-Mon:03:00' | string | n/a | yes | | maintenance\_window | The window to perform maintenance in. Syntax: 'ddd:hh24:mi-ddd:hh24:mi'. Eg: 'Mon:00:00-Mon:03:00' | string | n/a | yes |
| major\_engine\_version | Specifies the major version of the engine that this option group should be associated with | string | `""` | no | | major\_engine\_version | Specifies the major version of the engine that this option group should be associated with | string | `""` | no |
| monitoring\_interval | The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance. To disable collecting Enhanced Monitoring metrics, specify 0. The default is 0. Valid Values: 0, 1, 5, 10, 15, 30, 60. | number | `"0"` | no | | max\_allocated\_storage | Specifies the maximum value for storage autoscaling | number | `""` | no |
monitoring\_interval | The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance. To disable collecting Enhanced Monitoring metrics, specify 0. The default is 0. Valid Values: 0, 1, 5, 10, 15, 30, 60. | number | `"0"` | no |
| monitoring\_role\_arn | The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to CloudWatch Logs. Must be specified if monitoring_interval is non-zero. | string | `""` | no | | monitoring\_role\_arn | The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to CloudWatch Logs. Must be specified if monitoring_interval is non-zero. | string | `""` | no |
| monitoring\_role\_name | Name of the IAM role which will be created when create_monitoring_role is enabled. | string | `"rds-monitoring-role"` | no | | monitoring\_role\_name | Name of the IAM role which will be created when create_monitoring_role is enabled. | string | `"rds-monitoring-role"` | no |
| multi\_az | Specifies if the RDS instance is multi-AZ | bool | `"false"` | no | | multi\_az | Specifies if the RDS instance is multi-AZ | bool | `"false"` | no |
......
...@@ -97,7 +97,7 @@ module "db_instance" { ...@@ -97,7 +97,7 @@ module "db_instance" {
backup_retention_period = var.backup_retention_period backup_retention_period = var.backup_retention_period
backup_window = var.backup_window backup_window = var.backup_window
max_allocated_storage = var.max_allocated_storage
monitoring_interval = var.monitoring_interval monitoring_interval = var.monitoring_interval
monitoring_role_arn = var.monitoring_role_arn monitoring_role_arn = var.monitoring_role_arn
monitoring_role_name = var.monitoring_role_name monitoring_role_name = var.monitoring_role_name
......
...@@ -79,6 +79,7 @@ resource "aws_db_instance" "this" { ...@@ -79,6 +79,7 @@ resource "aws_db_instance" "this" {
skip_final_snapshot = var.skip_final_snapshot skip_final_snapshot = var.skip_final_snapshot
copy_tags_to_snapshot = var.copy_tags_to_snapshot copy_tags_to_snapshot = var.copy_tags_to_snapshot
final_snapshot_identifier = var.final_snapshot_identifier final_snapshot_identifier = var.final_snapshot_identifier
max_allocated_storage = var.max_allocated_storage
performance_insights_enabled = var.performance_insights_enabled performance_insights_enabled = var.performance_insights_enabled
...@@ -148,7 +149,7 @@ resource "aws_db_instance" "this_mssql" { ...@@ -148,7 +149,7 @@ resource "aws_db_instance" "this_mssql" {
skip_final_snapshot = var.skip_final_snapshot skip_final_snapshot = var.skip_final_snapshot
copy_tags_to_snapshot = var.copy_tags_to_snapshot copy_tags_to_snapshot = var.copy_tags_to_snapshot
final_snapshot_identifier = var.final_snapshot_identifier final_snapshot_identifier = var.final_snapshot_identifier
max_allocated_storage = var.max_allocated_storage
performance_insights_enabled = var.performance_insights_enabled performance_insights_enabled = var.performance_insights_enabled
backup_retention_period = var.backup_retention_period backup_retention_period = var.backup_retention_period
......
...@@ -261,3 +261,9 @@ variable "performance_insights_enabled" { ...@@ -261,3 +261,9 @@ variable "performance_insights_enabled" {
type = bool type = bool
default = false default = false
} }
variable "max_allocated_storage" {
description = "Specifies the value for Storage Autoscaling"
type = number
default = 0
}
...@@ -330,3 +330,9 @@ variable "performance_insights_enabled" { ...@@ -330,3 +330,9 @@ variable "performance_insights_enabled" {
type = bool type = bool
default = false default = false
} }
variable "max_allocated_storage" {
description = "Specifies the value for Storage Autoscaling"
type = number
default = 0
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment