From 24ec1f07af5fc1de229101c8293b55401eeafe8f Mon Sep 17 00:00:00 2001 From: bolyachevets Date: Wed, 13 Nov 2024 10:23:21 -0800 Subject: [PATCH] fix --- gcp/project_setup/gcp_permissions.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcp/project_setup/gcp_permissions.sh b/gcp/project_setup/gcp_permissions.sh index e766e919..5ea55b73 100644 --- a/gcp/project_setup/gcp_permissions.sh +++ b/gcp/project_setup/gcp_permissions.sh @@ -10,11 +10,11 @@ SHARED_VPC_NAME="${SHARED_VPC_NAME}-${TAG}" gcloud config set project $TARGET_PROJECT_ID -PROJECT_NUMBER=$(gcloud projects describe "${TARGET_PROJECT_ID}-${ENV}" --format="get(projectNumber)") +PROJECT_NUMBER=$(gcloud projects describe "${TARGET_PROJECT_ID}" --format="get(projectNumber)") TARGET_PROJECT_CLOUD_RUN_SERVICE_AGENT="service-${PROJECT_NUMBER}@serverless-robot-prod.iam.gserviceaccount.com" # attach project to VPC -gcloud compute $SHARED_VPC_NAME associated-projects add $TARGET_PROJECT_ID \ +gcloud compute shared-vpc associated-projects add $TARGET_PROJECT_ID \ --host-project=$HOST_PROJECT_ID # enable attached Service APIs