Skip to content

Commit

Permalink
Add random suffix to our CI instance base name
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCutter committed Jan 16, 2025
1 parent 94e0759 commit 4de7b7a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions deployment/live/gcp/conformance/ci/terragrunt.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ include "root" {
inputs = merge(
include.root.locals,
{
base_name = get_env("TESSERA_BASE_NAME", "ci-conformance-${substr(uuid(), 0, 4)}")
}
)
3 changes: 2 additions & 1 deletion deployment/live/gcp/conformance/terragrunt.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ locals {
project_id = get_env("GOOGLE_PROJECT")
location = get_env("GOOGLE_REGION", "us-central1")
base_name = get_env("TESSERA_BASE_NAME", "${local.env}-conformance")
state_bucket_name = "${local.base_name}"
server_docker_image = get_env("TESSERA_CLOUD_RUN_DOCKER_IMAGE")
signer = get_env("TESSERA_SIGNER")
tessera_reader = get_env("TESSERA_READER", "")
Expand All @@ -22,7 +23,7 @@ remote_state {
config = {
project = local.project_id
location = local.location
bucket = "${local.project_id}-${local.base_name}-terraform-state"
bucket = "${local.project_id}-${local.state_bucket_name}-terraform-state"
prefix = "${local.env}/terraform.tfstate"

gcs_bucket_labels = {
Expand Down

0 comments on commit 4de7b7a

Please sign in to comment.