Configure IAM Role for EKS Service Accounts (IRSA)
masterThe iam-role-for-service-accounts module automates the creation of IAM roles intended for use with Amazon EKS Service Accounts (IRSA). It allows you to easily attach pre-defined AWS managed policies for common EKS add-ons (like EBS CSI, VPC CNI, or Load Balancer Controller) and manage OIDC provider mappings for specific namespaces and service accounts.
Key Capabilities
- Add-on Support: Toggle permissions for common EKS components via boolean flags (e.g.,
attach_ebs_csi_policy,attach_vpc_cni_policy). - OIDC Integration: Map roles to specific Kubernetes namespaces and service accounts using the
oidc_providersinput. - Custom Permissions: Define custom inline or managed policies using the
permissionsorinline_policy_permissionsmaps. - Policy Merging: Combine multiple IAM policy documents using
source_policy_documentsoroverride_policy_documents.