From c3d61e3ecaf4856ce8a5334d6f99320ca2f48e51 Mon Sep 17 00:00:00 2001 From: Keren Trajtenberg Date: Mon, 29 Jan 2024 15:25:07 +0200 Subject: [PATCH] set iops configuration to null (default) --- Terraform/deploy-fsx-ontap/main.tf | 5 +---- Terraform/deploy-fsx-ontap/variables.tf | 7 ++----- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/Terraform/deploy-fsx-ontap/main.tf b/Terraform/deploy-fsx-ontap/main.tf index 254178c..63c593e 100644 --- a/Terraform/deploy-fsx-ontap/main.tf +++ b/Terraform/deploy-fsx-ontap/main.tf @@ -146,10 +146,7 @@ resource "aws_fsx_ontap_file_system" "terraform-fsxn" { automatic_backup_retention_days = var.backup_retention_days daily_automatic_backup_start_time = var.daily_backup_start_time storage_type = var.storage_type - disk_iops_configuration { - iops = var.disk_iops_configuration["iops"] - mode = var.disk_iops_configuration["mode"] - } + disk_iops_configuration = var.disk_iops_configuration fsx_admin_password = var.fsx_admin_password route_table_ids = var.route_table_ids tags = var.tags diff --git a/Terraform/deploy-fsx-ontap/variables.tf b/Terraform/deploy-fsx-ontap/variables.tf index 284a4a6..6cba2f0 100644 --- a/Terraform/deploy-fsx-ontap/variables.tf +++ b/Terraform/deploy-fsx-ontap/variables.tf @@ -58,7 +58,7 @@ variable "fsx_maintenance_start_time" { variable "kms_key_id" { description = "ARN for the KMS Key to encrypt the file system at rest, Defaults to an AWS managed KMS Key." type = string - default = null + default = null } variable "backup_retention_days" { @@ -76,10 +76,7 @@ variable "daily_backup_start_time" { variable "disk_iops_configuration" { description = "The SSD IOPS configuration for the Amazon FSx for NetApp ONTAP file system" type = map(any) - default = { - "iops" = 3000 - "mode" = "AUTOMATIC" - } + default = null } variable "fsx_admin_password" {