fix: bucket acls, readme

This commit is contained in:
Andrejus
2021-05-03 00:52:39 +01:00
parent c38e0546df
commit 18c629d8ff
3 changed files with 22 additions and 4 deletions

View File

@@ -29,11 +29,24 @@ resource "google_storage_bucket_acl" "bucket_acl" {
bucket = google_storage_bucket.bucket.name
role_entity = [
"READER:allUsers",
"OWNER:project-owners-${var.project_number}",
"OWNER:project-editors-${var.project_number}",
"READER:project-viewers-${var.project_number}",
"OWNER:user-${google_service_account.uploader_sa.email}",
]
}
resource "google_storage_default_object_acl" "default_acl" {
bucket = google_storage_bucket.bucket.name
role_entity = [
"READER:allUsers",
"OWNER:project-owners-${var.project_number}",
"OWNER:project-editors-${var.project_number}",
"READER:project-viewers-${var.project_number}",
]
}
resource "google_storage_bucket_object" "index" {
name = "index.html"
source = "${path.module}/public/index.html"