From 2f5becd666d6e40d784000231e850c909abfbd59 Mon Sep 17 00:00:00 2001 From: badra001 Date: Fri, 5 Jan 2024 14:26:38 -0500 Subject: [PATCH] update --- acmpca/locals.tf | 9 --------- acmpca/main.tf | 9 +++++++++ 2 files changed, 9 insertions(+), 9 deletions(-) delete mode 100644 acmpca/locals.tf diff --git a/acmpca/locals.tf b/acmpca/locals.tf deleted file mode 100644 index 2bd4d7f..0000000 --- a/acmpca/locals.tf +++ /dev/null @@ -1,9 +0,0 @@ -locals { - account_id = var.account_id != "" ? var.account_id : data.aws_caller_identity.current.account_id - account_environment = data.aws_arn.current.partition == "aws-us-gov" ? "gov" : "ew" - - base_tags = { - "boc:tf_module_version" = local._module_version - "boc:created_by" = "terraform" - } -} diff --git a/acmpca/main.tf b/acmpca/main.tf index f67176e..d923b3f 100644 --- a/acmpca/main.tf +++ b/acmpca/main.tf @@ -47,3 +47,12 @@ * the ARN if completed. You'll use the ARN for an AWS LB Listener. */ +locals { + account_id = var.account_id != "" ? var.account_id : data.aws_caller_identity.current.account_id + account_environment = data.aws_arn.current.partition == "aws-us-gov" ? "gov" : "ew" + + base_tags = { + "boc:tf_module_version" = local._module_version + "boc:created_by" = "terraform" + } +}