Skip to content

Commit

Permalink
Fixed GA NetworkSecurity tests (#10656) (#709)
Browse files Browse the repository at this point in the history
[upstream:636d31676ab74cd9d4c48bdb4725a89f5dd6e9d7]

Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored May 10, 2024
1 parent 98af49b commit 297adcb
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions network_security_tls_inspection_policy_basic/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,13 @@ resource "google_privateca_certificate_authority" "default" {
}
}

resource "google_project_service_identity" "ns_sa" {
service = "networksecurity.googleapis.com"
}

data "google_project" "project" {}

resource "google_privateca_ca_pool_iam_member" "tls_inspection_permission" {
ca_pool = google_privateca_ca_pool.default.id
role = "roles/privateca.certificateManager"
member = "serviceAccount:${google_project_service_identity.ns_sa.email}"
member = "serviceAccount:service-${data.google_project.project.number}@gcp-sa-networksecurity.iam.gserviceaccount.com"
}

resource "google_network_security_tls_inspection_policy" "default" {
Expand Down

0 comments on commit 297adcb

Please sign in to comment.