I want to create a GCP service account that will have full access to a specific bucket (say my-bucket
).
I can work around this by providing to my service account the roles.storageAdmin
role as follows:
gcloud iam service-accounts create my-sa \
--description="My Service Account" \
--display-name="my-sa"
and
gcloud projects add-iam-policy-binding my-project \
--member="serviceAccount:[email protected]" \
--role="roles/storage.objectAdmin"
but unless I am wrong, this gives very broad permissions to all the project's buckets.
Is there a way to provide full access to a specific bucket (and only this one) to a service account?