From 17b4f60ed9ea4f50d0bc67896574ecb3ae0c2645 Mon Sep 17 00:00:00 2001 From: Emma Dixneuf Date: Fri, 3 Feb 2023 15:50:05 +0100 Subject: [PATCH] fix(project_id): remove from bucket resources --- examples/simple_frontend/main.tf | 2 +- main.tf | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/examples/simple_frontend/main.tf b/examples/simple_frontend/main.tf index b2040b2..ca27438 100644 --- a/examples/simple_frontend/main.tf +++ b/examples/simple_frontend/main.tf @@ -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 } diff --git a/main.tf b/main.tf index 04342f4..8060c32 100644 --- a/main.tf +++ b/main.tf @@ -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", @@ -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"