https://pulumi.com logo
#typescript
Title
# typescript
m

many-dress-88879

07/07/2020, 11:30 PM
any body know which pulumi resources i do need to use for this change?
Copy code
gsutil iam ch \
  serviceAccount:service-PROJECT_NUM@cloud-cdn-fill.iam.gserviceaccount.com:objectViewer \
  gs://[BUCKET]
i do have project_number and bucket_name
tried
Copy code
const storageIam = new gcp.projects.IAMMember("cdnStorageIam", {
    member: `serviceAccount:service-${config.require("projectNumber")}@cloud-cdn-fill.iam.gserviceaccount.com`,
    project: gcpConfig.require("project"),
    role: "roles/storage.viewer",
});
getting
googleapi: Error 400: Role roles/storage.viewer is not supported for this resource., badRequest
h

hundreds-musician-51496

07/07/2020, 11:40 PM
There is a #gcp channel you might have better luck in
👍 1