https://pulumi.com logo
#google-cloud
Title
# google-cloud
m

many-dress-88879

07/07/2020, 11:40 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]
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