From 54495bf5ea2f7581f2b7f534f0fab43abd7f75a6 Mon Sep 17 00:00:00 2001 From: Keren Trajtenberg Date: Mon, 29 Jan 2024 14:32:04 +0200 Subject: [PATCH 1/2] fixed route_table_ids type var --- Terraform/deploy-fsx-ontap/variables.tf | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Terraform/deploy-fsx-ontap/variables.tf b/Terraform/deploy-fsx-ontap/variables.tf index a6f88a1..11fa36b 100644 --- a/Terraform/deploy-fsx-ontap/variables.tf +++ b/Terraform/deploy-fsx-ontap/variables.tf @@ -23,12 +23,9 @@ variable "vpc_id" { } variable "fsx_subnets" { - description = "The IDs of the subnets fro which the FSxN filesystem will be assigned IP addresses" - type = map(any) - default = { - "primarysub" = "" - "secondarysub" = "" - } + description = "Specifies the VPC route tables in which your file system's endpoints will be created. You should specify all VPC route tables associated with the subnets in which your clients are located. By default, Amazon FSx selects your VPC's default route table." + type = list(any) + default = null } variable "fsx_capacity_size_gb" { From 7a65985c65ce6d581f60fd7fc223bd4580d191bc Mon Sep 17 00:00:00 2001 From: Keren Trajtenberg Date: Mon, 29 Jan 2024 14:35:27 +0200 Subject: [PATCH 2/2] fixed fsx subnet argument --- Terraform/deploy-fsx-ontap/README.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Terraform/deploy-fsx-ontap/README.md b/Terraform/deploy-fsx-ontap/README.md index 1b7582f..835b3e1 100644 --- a/Terraform/deploy-fsx-ontap/README.md +++ b/Terraform/deploy-fsx-ontap/README.md @@ -119,10 +119,7 @@ module "fsxontap" { source = "github.com/Netapp/FSxN-Samples/Terraform/deploy-fsx-ontap" vpc_id = "" - fsx_subnets = { - "primarysub" = "" - "secondarysub" = "" - } + fsx_subnets = ["", ""] create_sg = // true to create Security Group for the Fs / false otherwise cidr_for_sg = "" fsx_admin_password = ""