From 4a9931dc339216fc5edb815c681168fd7063424c Mon Sep 17 00:00:00 2001 From: Morgante Pell Date: Thu, 13 May 2021 14:18:48 -0700 Subject: [PATCH] fix: Use correct IAM view role in example (#115) * fix: Use correct IAM view role in example Fixes #114 * Update README.md --- examples/simple_bucket/main.tf | 2 +- modules/simple_bucket/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/simple_bucket/main.tf b/examples/simple_bucket/main.tf index b01cf569..b1cda880 100644 --- a/examples/simple_bucket/main.tf +++ b/examples/simple_bucket/main.tf @@ -32,7 +32,7 @@ module "bucket" { }] iam_members = [{ - role = "roles/storage.viewer" + role = "roles/storage.objectViewer" member = "user:example-user@example.com" }] } diff --git a/modules/simple_bucket/README.md b/modules/simple_bucket/README.md index 5c8d155b..44978aef 100644 --- a/modules/simple_bucket/README.md +++ b/modules/simple_bucket/README.md @@ -24,7 +24,7 @@ module "bucket" { project_id = "example-project" location = "us-east1" iam_members = [{ - role = "roles/storage.viewer" + role = "roles/storage.objectViewer" member = "user:example-user@example.com" }] }