Skip to content

Commit

Permalink
Add permissions for secondary boot disk guide (#893)
Browse files Browse the repository at this point in the history
  • Loading branch information
vivianrwu authored Nov 26, 2024
1 parent 799225e commit f0f8f2c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tools/gke-disk-image-builder/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,20 @@ examples below to understand how this tool work better.
1. Compute Engine API must be enabled.
(https://console.developers.google.com/apis/api/compute.googleapis.com/overview?project=$PROJECT_NAME)
1. Verify that `$PROJECT_NUMBER-compute@developer.gserviceaccount.com` has
`storage.objectCreator` and `storage.objectViewer` permissions to the provided *GCS path* for the logs.
`storage.objectCreator` and `storage.objectViewer` permissions to the
provided *GCS path* for the logs and startup script.
You can run the following command to grant proper permissions for this:

```shell
gcloud storage buckets add-iam-policy-binding gs://$GCS_PATH \
--project=$PROJECT_NAME \
--member=serviceAccount:$PROJECT_NUMBER-compute@developer.gserviceaccount.com \
--role=roles/storage.objectCreator

gcloud storage buckets add-iam-policy-binding gs://$GCS_PATH \
--project=$PROJECT_NAME \
--member=serviceAccount:$PROJECT_NUMBER-compute@developer.gserviceaccount.com \
--role=roles/storage.objectViewer
```

1. If a disk image with the given name (via the **--image-name** flag) already
Expand Down

0 comments on commit f0f8f2c

Please sign in to comment.