Skip to content

Instantly share code, notes, and snippets.

@tuanchris
Created August 15, 2020 06:10
Show Gist options
  • Save tuanchris/e6256ea69c99b43df8787e4b3c411ea0 to your computer and use it in GitHub Desktop.
Save tuanchris/e6256ea69c99b43df8787e4b3c411ea0 to your computer and use it in GitHub Desktop.
cloud-iac-2
resource "google_storage_bucket_acl" "gcs-data-lake-landing-acl" {
bucket = google_storage_bucket.gcs-data-lake-landing.name
role_entity = [
"OWNER:${local.unique_id}-de@gmail.com",
"READER:${local.unique_id}-ds@gmail.com",
]
}
resource "google_storage_bucket_acl" "gcs-data-lake-sensitive-acl" {
bucket = google_storage_bucket.gcs-data-lake-sensitive.name
role_entity = [
"OWNER:${local.unique_id}-de@gmail.com",
"READER:${local.unique_id}-ds@gmail.com",
]
}
resource "google_storage_bucket_acl" "gcs-data-lake-work-acl" {
bucket = google_storage_bucket.gcs-data-lake-work.name
role_entity = [
"OWNER:${local.unique_id}-de@gmail.com",
"WRITER:${local.unique_id}-ds@gmail.com",
]
}
resource "google_storage_bucket_acl" "gcs-data-lake-backup-acl" {
bucket = google_storage_bucket.gcs-data-lake-backup.name
role_entity = [
"OWNER:${local.unique_id}-de@gmail.com",
"READER:${local.unique_id}-ds@gmail.com",
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment