Skip to content

Commit 132e0e8

Browse files
Work around coalesce needing a value even when we are deploying persistent resources
1 parent e266720 commit 132e0e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

terragrunt.hcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ locals {
1818
bucket = "${local.name_dash}-${local.region}-${local.name_hash}-tfstate"
1919
dynamodb_table = "${local.name_dash}-${local.region}-${local.name_hash}-tflocks"
2020
repo_name = basename(abspath("${get_path_to_repo_root()}"))
21-
state_filename_ephemeral = "${local.account_name}/${coalesce(local.git_branch, local.current_user)}/${local.environment_instance}/terraform.tfstate"
21+
state_filename_ephemeral = "${local.account_name}/${coalesce(local.git_branch, local.current_use, "/")}/${local.environment_instance}/terraform.tfstate"
2222
state_filename_persist = "${local.account_name}/${local.environment_instance}/terraform.tfstate"
2323
}
2424

0 commit comments

Comments
 (0)