Skip to content

Commit

Permalink
Merge pull request #1 from yandex-cloud-examples/update/YCDOCIO-3084-…
Browse files Browse the repository at this point in the history
…roles

YCDOCIO-3084: updated roles of a serice account
  • Loading branch information
redalka-cloud authored Aug 27, 2024
2 parents 961e10f + 34ac86b commit 8814891
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions data-proc-for-spark-jobs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,13 @@ resource "yandex_resourcemanager_folder_iam_member" "sa-dataproc-agent" {
member = "serviceAccount:${yandex_iam_service_account.data-proc-sa.id}"
}

# Assign the "dataproc.provisioner" role to the Data Proc service account
resource "yandex_resourcemanager_folder_iam_member" "sa-dataproc-provisioner" {
folder_id = local.folder_id
role = "dataproc.provisioner"
member = "serviceAccount:${yandex_iam_service_account.data-proc-sa.id}"
}

# Assign the "storage.admin" role to the Data Proc service account
resource "yandex_resourcemanager_folder_iam_member" "sa-storage-admin" {
folder_id = local.folder_id
Expand Down

0 comments on commit 8814891

Please sign in to comment.