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