Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bolyachevets committed Nov 13, 2024
1 parent 4e86410 commit 24ec1f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gcp/project_setup/gcp_permissions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 24ec1f0

Please sign in to comment.