I am trying to create a GCS bucket using Deployment Manager using the following resource config:
resources:
- type: storage.v1.bucket
name: upload-bucket
properties:
project: <project-id>
name: <unique-bucket-name>
However, I get the following error:
- code: RESOURCE_ERROR
location: /deployments/the-bucket/resources/upload-bucket
message: '{"ResourceType":"storage.v1.bucket","ResourceErrorCode":"403","ResourceErrorMessage":{"code":403,"errors":[{"domain":"global","message":"[email protected]
does not have storage.buckets.get access to upload-bucket.","reason":"forbidden"}],"message":"[email protected]
does not have storage.buckets.get access to upload-bucket.","statusMessage":"Forbidden","requestPath":"https://www.googleapis.com/storage/v1/b/upload-bucket","httpMethod":"GET","suggestion":"Consider
granting permissions to [email protected]"}}'
The role of [email protected]
is Project Editor
by default (which surely has enough permissions?), however I've also tried adding Storage Admin
and Project Owner
- neither seems to help.
My 2 questions are:
- Why it is trying to use this service account?
- How can I get Deployment Manager to be able to create a bucket?
Thanks