Skip to content

Commit 76efb3a

Browse files
authored
fix: remove bucket_policy_only, add uniform_bucket_level_access (#48)
1 parent cdd4910 commit 76efb3a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

main.tf

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@ data "archive_file" "main" {
4848
}
4949

5050
resource "google_storage_bucket" "main" {
51-
count = var.create_bucket ? 1 : 0
52-
name = coalesce(var.bucket_name, var.name)
53-
force_destroy = var.bucket_force_destroy
54-
location = var.region
55-
project = var.project_id
56-
storage_class = "REGIONAL"
57-
labels = var.bucket_labels
58-
bucket_policy_only = true
51+
count = var.create_bucket ? 1 : 0
52+
name = coalesce(var.bucket_name, var.name)
53+
force_destroy = var.bucket_force_destroy
54+
location = var.region
55+
project = var.project_id
56+
storage_class = "REGIONAL"
57+
labels = var.bucket_labels
58+
uniform_bucket_level_access = true
5959
}
6060

6161
resource "google_storage_bucket_object" "main" {

0 commit comments

Comments
 (0)