Skip to content

Commit

Permalink
DLP service agent enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
ddaluka committed Nov 17, 2023
1 parent 1f344b6 commit 7158864
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions modules/project/service-accounts.tf
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,15 @@ resource "google_project_iam_member" "servicenetworking" {
member = "serviceAccount:${google_project_service_identity.servicenetworking.0.email}"
}

#DLP service identity
resource "google_project_service_identity" "dlp" {
provider = google-beta
count = contains(var.services, "dlp.googleapis.com") ? 1 : 0
project = local.project.project_id
service = "dlp.googleapis.com"
depends_on = [google_project_service.project_services]
}

# Secret Manager SA created just in time, we need to trigger the creation.
resource "google_project_service_identity" "jit_si" {
for_each = setintersection(var.services, local.service_accounts_jit_services)
Expand Down

0 comments on commit 7158864

Please sign in to comment.