All Modules
AWSSecurity

IRSA

IAM Role for Kubernetes Service Accounts with OIDC federation

Usage

module "irsa" {
  source = "github.com/fencepencil/fencepencil-aws-modules//irsa"

  name = "<name>"
  oidc_provider_arn = "<oidc_provider_arn>"
  oidc_provider_url = "<oidc_provider_url>"
  namespace = "<namespace>"
  service_account = "<service_account>"

  tags = var.tags
}

Inputs (7)

NameTypeDescriptionDefaultRequired
namestringName of the IAM roleyes
oidc_provider_arnstringARN of the EKS OIDC provideryes
oidc_provider_urlstringURL of the EKS OIDC provideryes
namespacestringKubernetes namespaceyes
service_accountstringKubernetes service account nameyes
policy_arnslist(string)IAM policy ARNs to attach[]no
tagsmap(string)Tags to apply to all resources{}no

Outputs (2)

NameDescription
role_arnARN of the IAM role
role_nameName of the IAM role

More AWS Modules

Browse our full library of AWS infrastructure modules.

View all AWS modules