From a159e98e4ed559541555faf753e3ce19ca0994ce Mon Sep 17 00:00:00 2001 From: "Matthew C. Morgan" Date: Thu, 8 May 2025 13:38:18 -0400 Subject: [PATCH] update remote state for codebuild where git repo doesn't exist --- lab/root.hcl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lab/root.hcl b/lab/root.hcl index 05e1e14..056d0f2 100644 --- a/lab/root.hcl +++ b/lab/root.hcl @@ -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