Skip to content

Commit

Permalink
update remote state for codebuild where git repo doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
morga471 committed May 8, 2025
1 parent bb39deb commit a159e98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lab/root.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ remote_state {
config = {
bucket = "${local.state_bucket_prefix}-${local.account_id}"
dynamodb_table = "${local.state_table_name}"
key = "${trimprefix(replace(run_cmd("realpath", get_original_terragrunt_dir()), dirname(get_repo_root()), ""), "/")}/terraform.tfstate"
key = "${trimprefix(replace(run_cmd("realpath", get_original_terragrunt_dir()), dirname(local.root), ""), "/")}/terraform.tfstate"
profile = "${local.aws_profile}"
region = "${local.aws_region}"
disable_bucket_update = true
Expand Down

0 comments on commit a159e98

Please sign in to comment.