From 629d7a93ee352d136a1322e29ca52a06e11d61ff Mon Sep 17 00:00:00 2001 From: Michael Li Date: Fri, 3 Jan 2025 10:47:08 -0500 Subject: [PATCH] chore(e2e): Modify gcp label to meet format constraints (#5400) GCP label constraints include the following: The value can only contain lowercase letters, numeric characters, underscores and dashes. The value can be at most 63 characters long. International characters are allowed. --- enos/modules/gcp_target/main.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/enos/modules/gcp_target/main.tf b/enos/modules/gcp_target/main.tf index a983daa06d..828a29dfb4 100644 --- a/enos/modules/gcp_target/main.tf +++ b/enos/modules/gcp_target/main.tf @@ -125,7 +125,7 @@ resource "google_compute_instance" "boundary_target" { "project" : "enos", "project_name" : "qti-enos-boundary", "environment" : var.environment, - "enos_user" : var.enos_user, + "enos_user" : replace(var.enos_user, "/[\\W]+/", ""), "filter_label_1" : random_id.filter_label1.hex "filter_label_2" : random_id.filter_label2.hex }) @@ -157,4 +157,4 @@ output "filter_label1" { output "filter_label2" { value = "labels.filter_label_2=${random_id.filter_label2.hex}" -} \ No newline at end of file +}