File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Terraform/deploy-fsx-ontap/module Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -27,13 +27,14 @@ resource "aws_fsx_ontap_file_system" "terraform-fsxn" {
2727 automatic_backup_retention_days = var. backup_retention_days
2828 daily_automatic_backup_start_time = var. daily_backup_start_time
2929 fsx_admin_password = data. aws_secretsmanager_secret_version . fsx_password . secret_string
30- route_table_ids = var. route_table_ids
30+ route_table_ids = ( var. fsx_deploy_type == " MULTI_AZ_1 " ? var . route_table_ids : null )
3131 tags = var. tags
3232 dynamic "disk_iops_configuration" {
33- for_each = var. disk_iops_configuration != null ? [var . disk_iops_configuration ] : []
33+ for_each = length (var. disk_iops_configuration ) > 0 ? [var . disk_iops_configuration ] : []
34+
3435 content {
35- iops = disk_iops_configuration. value [ " iops" ]
36- mode = disk_iops_configuration. value [ " mode" ]
36+ iops = try ( disk_iops_configuration. value . iops , null )
37+ mode = try ( disk_iops_configuration. value . mode , null )
3738 }
3839 }
3940
You can’t perform that action at this time.
0 commit comments