File tree Expand file tree Collapse file tree 3 files changed +20
-5
lines changed
Expand file tree Collapse file tree 3 files changed +20
-5
lines changed Original file line number Diff line number Diff line change @@ -173,9 +173,17 @@ Type: `bool`
173173
174174Default: ` true `
175175
176+ ### database\_ storage\_ io\_ scaling\_ enabled
177+
178+ Description: Enables IOPS auto scaling. If true, database\_ storage\_ iops will be ignored
179+
180+ Type: ` bool `
181+
182+ Default: ` false `
183+
176184### database\_ storage\_ iops
177185
178- Description: IO operations per second
186+ Description: IO operations per second. If database \_ storage \_ io \_ scaling \_ enabled is true, this variable will be ignored
179187
180188Type: ` number `
181189
Original file line number Diff line number Diff line change @@ -6,9 +6,10 @@ resource "azurerm_mysql_flexible_server" "server" {
66 administrator_password = var. admin_password
77 sku_name = var. database_host_sku
88 storage {
9- size_gb = var. database_storage_size
10- auto_grow_enabled = var. database_storage_autogrow
11- iops = var. database_storage_iops
9+ size_gb = var. database_storage_size
10+ auto_grow_enabled = var. database_storage_autogrow
11+ iops = var. database_storage_io_scaling_enabled != true ? var. database_storage_iops : null
12+ io_scaling_enabled = var. database_storage_io_scaling_enabled
1213 }
1314 version = var. database_version
1415 backup_retention_days = var. backup_retention_days
Original file line number Diff line number Diff line change @@ -87,7 +87,13 @@ variable "database_storage_autogrow" {
8787variable "database_storage_iops" {
8888 type = number
8989 default = 3600
90- description = " IO operations per second"
90+ description = " IO operations per second. If database_storage_io_scaling_enabled is true, this variable will be ignored"
91+ }
92+
93+ variable "database_storage_io_scaling_enabled" {
94+ type = bool
95+ default = false
96+ description = " Enables IOPS auto scaling. If true, database_storage_iops will be ignored"
9197}
9298
9399variable "allowed_ips" {
You can’t perform that action at this time.
0 commit comments