From 44c6e75aa823b949790b64dd06ec200c50465662 Mon Sep 17 00:00:00 2001 From: Shuya Ma <87669292+shuyama1@users.noreply.github.com> Date: Mon, 30 Dec 2024 16:16:53 -0800 Subject: [PATCH] Fix Artifact Registry Repository URI test (#12668) --- ...remote_common_repository_with_artifact_registry_uri.tf.tmpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mmv1/templates/terraform/examples/artifact_registry_repository_remote_common_repository_with_artifact_registry_uri.tf.tmpl b/mmv1/templates/terraform/examples/artifact_registry_repository_remote_common_repository_with_artifact_registry_uri.tf.tmpl index 25b574437859..b6713717a9e9 100644 --- a/mmv1/templates/terraform/examples/artifact_registry_repository_remote_common_repository_with_artifact_registry_uri.tf.tmpl +++ b/mmv1/templates/terraform/examples/artifact_registry_repository_remote_common_repository_with_artifact_registry_uri.tf.tmpl @@ -16,7 +16,8 @@ resource "google_artifact_registry_repository" "{{$.PrimaryResourceId}}" { remote_repository_config { description = "pull-through cache of another Artifact Registry repository by URL" common_repository { - uri = "https://us-central1-docker.pkg.dev/{{index $.TestEnvVars "project_id"}}/{{index $.Vars "upstream_repository_id"}}" + uri = "https://us-central1-docker.pkg.dev/${data.google_project.project.project_id}/{{index $.Vars "upstream_repository_id"}}" } } + depends_on = [google_artifact_registry_repository.upstream_repo] }