Skip to content

Commit 58a51b7

Browse files
docs: add Cloud Build permissions to Cloud Run deployment prerequisites (#1703)
* docs: update Cloud Run deployment guide for compute service account to have permission to use Cloud Build. * Update cloud-run.md --------- Co-authored-by: Joe Fernandez <joefernandez@users.noreply.github.com>
1 parent 06bec87 commit 58a51b7

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

docs/deploy/cloud-run.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,17 @@ export GOOGLE_API_KEY=your-api-key
8383

8484
Please make sure you have created a secret which can be read by your service account.
8585

86+
87+
### Cloud Build Permissions
88+
89+
Since the `adk deploy` command uses Google Cloud Build to automate the build process, you must set your default compute service account to have permission to use Cloud Build.
90+
The following command example shows how to grant this permission:
91+
92+
```bash
93+
gcloud projects add-iam-policy-binding [PROJECT_ID] \
94+
--member="serviceAccount:[PROJECT_NUMBER]-compute@developer.gserviceaccount.com" \
95+
--role="roles/cloudbuild.builds.builder"
96+
8697
### Entry for GOOGLE_API_KEY secret
8798

8899
You can create your secret manually or use CLI:

0 commit comments

Comments
 (0)