From bfcc0e97b68eee14cb436946feceddd62f5fe177 Mon Sep 17 00:00:00 2001 From: Martin Rostan Date: Wed, 29 May 2024 16:16:29 -0300 Subject: [PATCH] removed N/A option from cloud account id var --- main.tf | 2 +- variables.tf | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/main.tf b/main.tf index d6a2051..79d1a0e 100644 --- a/main.tf +++ b/main.tf @@ -9,7 +9,7 @@ locals { account_id = data.aws_caller_identity.current.account_id partition_id = data.aws_partition.current.id connect_to_vpc = length(var.private_subnets) >= 2 ? true : false - skip_cloud_account_policy = contains(["N/A", "590183797493"], var.cloud_account_id) + skip_cloud_account_policy = contains(["590183797493"], var.cloud_account_id) invocation_role_source_arns = local.skip_cloud_account_policy ? ["arn:aws:iam::590183797493:root"] : ["arn:aws:iam::${var.cloud_account_id}:root", "arn:aws:iam::590183797493:root"] # Data store properties diff --git a/variables.tf b/variables.tf index 5dcdf72..a72140d 100644 --- a/variables.tf +++ b/variables.tf @@ -6,13 +6,16 @@ variable "image" { variable "cloud_account_id" { description = <