Skip to content

Commit

Permalink
fix: Use uniform-level access policy in GCS bucket
Browse files Browse the repository at this point in the history
Use uniform-level access policy in GCS bucket
  • Loading branch information
morgante authored May 1, 2020
2 parents 27758d9 + 148aa28 commit 9fa60be
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,13 @@ data "archive_file" "main" {
}

resource "google_storage_bucket" "main" {
name = coalesce(var.bucket_name, var.name)
force_destroy = var.bucket_force_destroy
location = var.region
project = var.project_id
storage_class = "REGIONAL"
labels = var.bucket_labels
name = coalesce(var.bucket_name, var.name)
force_destroy = var.bucket_force_destroy
location = var.region
project = var.project_id
storage_class = "REGIONAL"
labels = var.bucket_labels
bucket_policy_only = true
}

resource "google_storage_bucket_object" "main" {
Expand Down

0 comments on commit 9fa60be

Please sign in to comment.