diff --git a/acm/locals.tf b/acm/locals.tf deleted file mode 100644 index 2bd4d7f..0000000 --- a/acm/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/acm/main.tf b/acm/main.tf index 6003b3d..12d9fb0 100644 --- a/acm/main.tf +++ b/acm/main.tf @@ -50,3 +50,14 @@ * The output value to look at is `certificate_arn`. This is null if the certificate is incomplete or failed to load into ACM, or * 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" + } +}