Skip to content

Commit

Permalink
Fix roles in terraform config
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickmoy committed Jan 3, 2025
1 parent 917c1a5 commit 96a4140
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 15 deletions.
6 changes: 6 additions & 0 deletions .ci/infra/terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,12 @@ resource "google_organization_iam_member" "sa_principal_access_boundary_admin" {
member = google_service_account.sa.member
}

resource "google_organization_iam_member" "dlp_admin" {
org_id = data.google_organization.org.org_id
role = "roles/dlp.admin"
member = google_service_account.sa.member
}

resource "google_billing_account_iam_member" "sa_master_billing_admin" {
billing_account_id = data.google_billing_account.master_acct.id
role = "roles/billing.admin"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1370,21 +1370,6 @@ func testAccDataLossPreventionDiscoveryConfig_dlpDiscoveryConfigStartAwsS3(conte
return acctest.Nprintf(`
data "google_project" "project" {
}
resource "google_organization_iam_member" "service_agent" {
org_id = "%{organization}"
role = "roles/servicemanagement.admin"
member = "serviceAccount:service-${data.google_project.project.number}@dlp-api.iam.gserviceaccount.com"
}
resource "google_organization_iam_member" "org_admin" {
org_id = "%{organization}"
role = "roles/resourcemanager.organizationAdmin"
member = "serviceAccount:service-${data.google_project.project.number}@dlp-api.iam.gserviceaccount.com"
}
resource "google_organization_iam_member" "dlp_role" {
org_id = "%{organization}"
role = "roles/dlp.orgdriver"
member = "serviceAccount:service-${data.google_project.project.number}@dlp-api.iam.gserviceaccount.com"
}
resource "google_data_loss_prevention_inspect_template" "basic" {
parent = "projects/%{project}"
description = "Description"
Expand Down

0 comments on commit 96a4140

Please sign in to comment.