From ab8c657b50843b11752be45e1b01405a0d1d7170 Mon Sep 17 00:00:00 2001 From: Al Cutter Date: Tue, 20 Aug 2024 17:39:10 +0100 Subject: [PATCH] Try referencing env --- deployment/live/gcp/example-gcp/terragrunt.hcl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deployment/live/gcp/example-gcp/terragrunt.hcl b/deployment/live/gcp/example-gcp/terragrunt.hcl index c1ed8e92..737cbae2 100644 --- a/deployment/live/gcp/example-gcp/terragrunt.hcl +++ b/deployment/live/gcp/example-gcp/terragrunt.hcl @@ -6,7 +6,7 @@ locals { env = path_relative_to_include() project_id = get_env("GOOGLE_PROJECT", "trillian-tessera") location = get_env("GOOGLE_REGION", "us-central1") - base_name = get_env("TESSERA_BASE_NAME", "${path_relative_to_include()}-example-gcp") + base_name = get_env("TESSERA_BASE_NAME", "${local.env}-example-gcp") } remote_state { @@ -16,7 +16,7 @@ remote_state { project = local.project_id location = local.location bucket = "${local.project_id}-${local.base_name}-terraform-state" - prefix = "${path_relative_to_include()}/terraform.tfstate" + prefix = "${local.env}/terraform.tfstate" gcs_bucket_labels = { name = "terraform_state_storage"