Skip to content

Commit a3f6c46

Browse files
Readd account name to state bucket and table (#26)
1 parent 86d0012 commit a3f6c46

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

terragrunt.hcl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ locals {
1515
environment_instance = basename(local.relative_path)
1616
git_branch = get_env("GIT_BRANCH", "")
1717
current_user = get_env("USER", "")
18-
bucket = "${local.name_dash}-${local.region}-${local.name_hash}-tfstate"
19-
dynamodb_table = "${local.name_dash}-${local.region}-${local.name_hash}-tflocks"
18+
bucket = "${local.name_dash}-${local.account_name}-${local.region}-${local.name_hash}-tfstate"
19+
dynamodb_table = "${local.name_dash}-${local.account_name}-${local.region}-${local.name_hash}-tflocks"
2020
repo_name = basename(abspath("${get_path_to_repo_root()}"))
2121
state_filename_ephemeral = "${local.account_name}/${coalesce(local.git_branch, local.current_user, "/")}/${local.environment_instance}/terraform.tfstate"
2222
state_filename_persist = "${local.account_name}/${local.environment_instance}/terraform.tfstate"

0 commit comments

Comments
 (0)