Skip to content

Commit

Permalink
Add nomad WIF
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisTerBeke committed May 22, 2024
1 parent a13589e commit ff51fcd
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions wif.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
resource "google_iam_workload_identity_pool" "nomad" {
workload_identity_pool_id = "nomad"
}

resource "google_iam_workload_identity_pool_provider" "nomad" {
workload_identity_pool_id = google_iam_workload_identity_pool.nomad.workload_identity_pool_id
workload_identity_pool_provider_id = "nomad"
display_name = "Nomad Workloads"

attribute_mapping = {
"google.subject" = "assertion.sub"
}

oidc {
allowed_audiences = ["gcp"]
issuer_uri = "https://nomad.christerbeke.com"
}
}

0 comments on commit ff51fcd

Please sign in to comment.