All Modules
AzureSecurity

Workload Identity

Managed identity with federated credentials for AKS workload identity

Usage

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

  name_prefix = "<name_prefix>"
  environment = "<environment>"
  resource_group_name = "<resource_group_name>"
  location = "<location>"
  identity_name = "<identity_name>"
  oidc_issuer_url = "<oidc_issuer_url>"
  namespace = "<namespace>"
  service_account = "<service_account>"

  tags = var.tags
}

Inputs (8)

NameTypeDescriptionDefaultRequired
name_prefixstringPrefix for resource namingyes
environmentstringDeployment environmentyes
resource_group_namestringResource group nameyes
locationstringAzure regionyes
identity_namestringName suffix for the identityyes
oidc_issuer_urlstringOIDC issuer URL of the AKS clusteryes
namespacestringKubernetes namespaceyes
service_accountstringKubernetes service account nameyes

Outputs (3)

NameDescription
identity_idID of the managed identity
client_idClient ID of the managed identity
principal_idPrincipal ID of the managed identity

More Azure Modules

Browse our full library of Azure infrastructure modules.

View all Azure modules