All Modules
GCPSecurity

Workload Identity Federation

OIDC federation for CI/CD pipelines with GitHub Actions or other providers

Usage

module "workload_identity_federation" {
  source = "github.com/fencepencil/gcp-modules//workload-identity-federation"

  project_id = "<project_id>"
  pool_id = "<pool_id>"
  display_name = "<display_name>"
  provider_id = "<provider_id>"
  issuer_uri = "<issuer_uri>"

  tags = var.tags
}

Inputs (7)

NameTypeDescriptionDefaultRequired
project_idstringGCP project IDyes
pool_idstringWorkload Identity Pool IDyes
display_namestringPool display nameyes
provider_idstringPool Provider IDyes
issuer_uristringOIDC issuer URIyes
create_service_accountboolCreate a service accounttrueno
service_account_roleslist(string)IAM roles for the SA[]no

Outputs (3)

NameDescription
pool_nameFull name of the identity pool
provider_nameFull name of the provider
service_account_emailService account email

More GCP Modules

Browse our full library of GCP infrastructure modules.

View all GCP modules