Skip to content

Commit 4e36b8f

Browse files
Android Build Filesystem (ABFS) Teamsce-taid
authored andcommitted
fix: enable uniform bucket level access on the ABFS bucket
`terraform apply` fails when the org policy `constraints/storage.uniformBucketLevelAccess` is enabled. PiperOrigin-RevId: 774688804
1 parent 10631b2 commit 4e36b8f

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

modules/server/gcs.tf

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ resource "random_bytes" "abfs_bucket_prefix" {
1717
}
1818

1919
resource "google_storage_bucket" "abfs" {
20-
project = var.project_id
21-
name = "${var.abfs_bucket_name}-${random_bytes.abfs_bucket_prefix.hex}"
22-
location = var.abfs_bucket_location
23-
public_access_prevention = "enforced"
20+
project = var.project_id
21+
name = "${var.abfs_bucket_name}-${random_bytes.abfs_bucket_prefix.hex}"
22+
location = var.abfs_bucket_location
23+
public_access_prevention = "enforced"
24+
uniform_bucket_level_access = true
2425
}

0 commit comments

Comments
 (0)