Created
September 24, 2022 10:00
-
-
Save viggin543/27dac5e1e3332bf7fd4b65a9c9bce087 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| data "google_iam_policy" "viewer" { | |
| binding { | |
| role = "roles/storage.objectViewer" | |
| members = [ | |
| "allUsers", | |
| ] | |
| } | |
| } | |
| resource "google_storage_bucket_iam_policy" "foo-public-read" { | |
| bucket = google_storage_bucket.editor.name | |
| policy_data = data.google_iam_policy.viewer.policy_data | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment