Skip to content

Commit

Permalink
Merge pull request #41 from populationgenomics/artifact-registry
Browse files Browse the repository at this point in the history
Add Artifact Registry permissions for the batch-agent service account
  • Loading branch information
vladsavelyev authored Feb 18, 2021
2 parents 9b94a33 + b8ad36f commit f658d8a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions infra/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,14 @@ resource "google_artifact_registry_repository_iam_member" "artifact_registry_pul
member = "serviceAccount:${google_service_account.gcr_pull.email}"
}

resource "google_artifact_registry_repository_iam_member" "artifact_registry_batch_agent_viewer" {
provider = google-beta
repository = google_artifact_registry_repository.repository.name
location = var.gcp_location
role = "roles/artifactregistry.reader"
member = "serviceAccount:${google_service_account.batch_agent.email}"
}

resource "google_artifact_registry_repository_iam_member" "artifact_registry_ci_viewer" {
provider = google-beta
repository = google_artifact_registry_repository.repository.name
Expand Down

0 comments on commit f658d8a

Please sign in to comment.