Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Oct 7, 2022
1 parent e33ce6e commit 92519fe
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
12 changes: 12 additions & 0 deletions tag-shared-vpc-resources/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,15 @@
* ```
*/

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"
region = data.aws_region.current.name
region_short = join("", [for c in split("-", local.region) : substr(c, 0, 1)])

base_tags = {
"boc:tf_module_version" = local._module_version
"boc:tf_module_name" = lookup(local._module_names, local._module_name, local._module_names["_main_"])
"boc:created_by" = "terraform"
}
}
4 changes: 0 additions & 4 deletions tag-shared-vpc-resources/region.tf

This file was deleted.

0 comments on commit 92519fe

Please sign in to comment.