eks-auth
aidanmelen/eks-auth/aws
A Terraform module to manage cluster authentication (aws-auth) for an Elastic Kubernetes (EKS) cluster on AWS.
Install
README
   terraform-aws-eks-auth A Terraform module to manage cluster authentication for an Elastic Kubernetes (EKS) cluster on AWS. Assumptions - You are using the terraform-aws-eks module. Usage Grant access to the AWS EKS cluster by adding map_roles, map_user or map_accounts to the aws-auth configmap. ``hcl module "eks" { source = "terraform-aws-modules/eks/aws" # insert the 15 required variables here } module "eks_auth" { source = "aidanmelen/eks-auth/aws" eks = module.eks map_roles = [ { rolearn = "arn:aws:iam::66666666666:
Inputs (5)
| Name | Type | Description | Default |
|---|---|---|---|
| eks | any | The outputs from the `terraform-aws-modules/terraform-aws-eks` module. | required |
| wait_for_cluster_timeout | number | A timeout (in seconds) to wait for cluster to be available. | 300 |
| map_accounts | list(string) | Additional AWS account numbers to add to the aws-auth configmap. | [] |
| map_roles | list(object({ rolearn = s | Additional IAM roles to add to the aws-auth configmap. | [] |
| map_users | list(object({ userarn = s | Additional IAM users to add to the aws-auth configmap. | [] |
Outputs (4)
map_roles — The aws-auth map roles merged with the eks managed node group, self managed node groups and fargate map_users — The aws-auth map users.aws_auth_configmap_yaml — Formatted yaml output for aws-auth configmap.map_accounts — The aws-auth map accounts.