Skip to content

Commit 5a0c8fc

Browse files
committed
Additional Permissions added to HC SA
1 parent dacf76b commit 5a0c8fc

3 files changed

+27
-0
lines changed

mmv1/templates/terraform/examples/healthcare_pipeline_job_mapping_recon_dest.tf.erb

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
data "google_project" "project" {
2+
}
3+
14
resource "google_healthcare_pipeline_job" "recon" {
25
name = "<%= ctx[:vars]['recon_pipeline_name'] %>"
36
location = "us-central1"
@@ -78,4 +81,10 @@ resource "google_storage_bucket_object" "merge_file" {
7881
name = "merge.wstl"
7982
content = " "
8083
bucket = google_storage_bucket.bucket.name
84+
}
85+
86+
resource "google_storage_bucket_iam_member" "hsa" {
87+
bucket = google_storage_bucket.bucket.name
88+
role = "roles/storage.objectUser"
89+
member = "serviceAccount:service-${data.google_project.project.number}@gcp-sa-healthcare.iam.gserviceaccount.com"
8190
}

mmv1/templates/terraform/examples/healthcare_pipeline_job_reconciliation.tf.erb

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
data "google_project" "project" {
2+
}
3+
14
resource "google_healthcare_pipeline_job" "<%= ctx[:primary_resource_id] %>" {
25
name = "<%= ctx[:vars]['pipeline_name'] %>"
36
location = "us-central1"
@@ -39,4 +42,10 @@ resource "google_storage_bucket_object" "merge_file" {
3942
name = "merge.wstl"
4043
content = " "
4144
bucket = google_storage_bucket.bucket.name
45+
}
46+
47+
resource "google_storage_bucket_iam_member" "hsa" {
48+
bucket = google_storage_bucket.bucket.name
49+
role = "roles/storage.objectUser"
50+
member = "serviceAccount:service-${data.google_project.project.number}@gcp-sa-healthcare.iam.gserviceaccount.com"
4251
}

mmv1/templates/terraform/examples/healthcare_pipeline_job_whistle_mapping.tf.erb

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
data "google_project" "project" {
2+
}
3+
14
resource "google_healthcare_pipeline_job" "<%= ctx[:primary_resource_id] %>" {
25
name = "<%= ctx[:vars]['pipeline_name'] %>"
36
location = "us-central1"
@@ -53,4 +56,10 @@ resource "google_storage_bucket_object" "mapping_file" {
5356
name = "mapping.wstl"
5457
content = " "
5558
bucket = google_storage_bucket.bucket.name
59+
}
60+
61+
resource "google_storage_bucket_iam_member" "hsa" {
62+
bucket = google_storage_bucket.bucket.name
63+
role = "roles/storage.objectUser"
64+
member = "serviceAccount:service-${data.google_project.project.number}@gcp-sa-healthcare.iam.gserviceaccount.com"
5665
}

0 commit comments

Comments
 (0)