Skip to content

Commit

Permalink
move locals to main
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Jan 5, 2024
1 parent 670a1bb commit cf87368
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
9 changes: 0 additions & 9 deletions acm/locals.tf

This file was deleted.

11 changes: 11 additions & 0 deletions acm/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}

0 comments on commit cf87368

Please sign in to comment.