Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

Commit

Permalink
fix(project_id): remove from bucket resources
Browse files Browse the repository at this point in the history
  • Loading branch information
edix9 committed Feb 3, 2023
1 parent 06c6b33 commit 17b4f60
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion examples/simple_frontend/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,5 @@ module "frontend" {
source = "../.."
name = "simplestaticfrontend"
location = "europe-west1"
project_id = data.google_project.this.project_id
project_id = local.project_id
}
2 changes: 0 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ resource "google_storage_bucket" "this" {
# make it public
resource "google_storage_bucket_iam_binding" "this" {
bucket = google_storage_bucket.this.name
project = var.project_id
role = "roles/storage.objectViewer"
members = [
"allUsers",
Expand All @@ -35,7 +34,6 @@ resource "google_storage_bucket_iam_binding" "this" {

resource "google_storage_bucket_access_control" "this" {
bucket = google_storage_bucket.this.name
project = var.project_id
role = "READER"
entity = "allUsers"

Expand Down

0 comments on commit 17b4f60

Please sign in to comment.