Skip to content

Commit

Permalink
read access to data bucket for appr members (digital-asset#7422)
Browse files Browse the repository at this point in the history
We've been saving data there but not doing anything with it. Ideally
this data would be used by some sort of automated process, but in the
meantime (or while developing said processes), having at least some
people with read access can help.

This is a Standard Change requested by @cocreature.

CHANGELOG_BEGIN
CHANGELOG_END
  • Loading branch information
garyverhaegen-da authored Sep 16, 2020
1 parent 51cd79f commit b9acc09
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions infra/data_bucket.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,21 @@ resource "google_storage_bucket_iam_member" "data" {
role = "roles/storage.objectAdmin"
member = "serviceAccount:${google_service_account.writer.email}"
}

// allow read access for appr team, as requested by Moritz
variable "appr" {
description = "Application Runtime team members"
default = [
"user:andreas.herrmann@digitalasset.com",
"user:gary.verhaegen@digitalasset.com",
"user:leonid.shlyapnikov@digitalasset.com",
"user:moritz.kiefer@digitalasset.com",
"user:stephen.compall@digitalasset.com",
]
}
resource "google_storage_bucket_iam_member" "appr" {
count = "${length(var.appr)}"
bucket = "${google_storage_bucket.data.name}"
role = "roles/storage.objectViewer"
member = "${var.appr[count.index]}"
}

0 comments on commit b9acc09

Please sign in to comment.