All Modules
GCPSecurity

Workload Identity

GKE Workload Identity binding between K8s and Google service accounts

Usage

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

  project_id = "<project_id>"
  service_account_id = "<service_account_id>"
  namespace = "<namespace>"
  k8s_service_account = "<k8s_service_account>"

  tags = var.tags
}

Inputs (5)

NameTypeDescriptionDefaultRequired
project_idstringGCP project IDyes
service_account_idstringGoogle service account IDyes
namespacestringKubernetes namespaceyes
k8s_service_accountstringK8s service account nameyes
roleslist(string)IAM roles to grant[]no

Outputs (2)

NameDescription
service_account_emailService account email
service_account_nameService account full name

More GCP Modules

Browse our full library of GCP infrastructure modules.

View all GCP modules