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" + } +}