{"id":20448894,"url":"https://github.com/koslib/terraform-aws-eks-auth","last_synced_at":"2026-04-24T05:31:18.502Z","repository":{"id":144101214,"uuid":"497034682","full_name":"koslib/terraform-aws-eks-auth","owner":"koslib","description":"A Terraform module facilitating IAM users and roles authentication for EKS clusters","archived":false,"fork":false,"pushed_at":"2022-05-27T15:28:11.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-05T09:17:19.325Z","etag":null,"topics":["eks","eks-cluster","kubernetes","kubernetes-authentication","terraform","terraform-module"],"latest_commit_sha":null,"homepage":"","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/koslib.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-05-27T14:48:51.000Z","updated_at":"2024-08-25T05:14:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"4c790169-54d7-482f-b8d7-24aa4c7cbeb1","html_url":"https://github.com/koslib/terraform-aws-eks-auth","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/koslib/terraform-aws-eks-auth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koslib%2Fterraform-aws-eks-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koslib%2Fterraform-aws-eks-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koslib%2Fterraform-aws-eks-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koslib%2Fterraform-aws-eks-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/koslib","download_url":"https://codeload.github.com/koslib/terraform-aws-eks-auth/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koslib%2Fterraform-aws-eks-auth/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32210802,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T03:15:14.334Z","status":"ssl_error","status_checked_at":"2026-04-24T03:15:11.608Z","response_time":64,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["eks","eks-cluster","kubernetes","kubernetes-authentication","terraform","terraform-module"],"created_at":"2024-11-15T10:37:30.493Z","updated_at":"2026-04-24T05:31:18.487Z","avatar_url":"https://github.com/koslib.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# terraform-aws-eks-auth\nA Terraform module facilitating IAM users and roles authentication for EKS clusters\n\n## Usage\n\n\u003e Provisioning the EKS cluster is out of scope for this module. Retrieving the node role needed to \"connect\" the control plane with the worker node groups should be done in connection to the method you used to bootstrap your EKS cluster.\n\n```\nmodule \"kube_auth\" {\n    source = \"koslib/eks-auth/aws\"\n    version = \"0.1.0\"\n\n    aws_region   = \"eu-north-1\"\n    aws_profile  = \"production\"\n    cluster_name = \"my-cool-apps\"\n    master_users = [\n        {\n        username = \"my-username\"\n        arn      = \"arn:aws:iam::012345678912:user/my-username\"\n        },\n        ....\n\n    ]\n    nodes_role = \"arn:aws:iam::012345678912:role/my-nodes-role-name-here\"\n}\n\n```\n\nEditing this when new IAM users/roles need to extend the list will also update the `ConfigMap` once this is planned and applied.\n\n\n## Providers\n\n| Name | Version |\n|------|---------|\n| \u003ca name=\"provider_aws\"\u003e\u003c/a\u003e [aws](#provider\\_aws) | \u003e= 3.72 |\n| \u003ca name=\"provider_kubernetes\"\u003e\u003c/a\u003e [kubernetes](#provider\\_kubernetes) | \u003e= 2.10 |\n\n\n## Inputs\n\n| Name | Description | Type | Default | Required |\n|------|-------------|------|---------|:--------:|\n| cluster_name | Indicates the cluster name to apply the config on. | `string` | NA | yes |\n| aws_region | Indicates the AWS region your EKS cluster is in. | `string` | NA | yes |\n| aws_profile | In case multiple profiles are used, specify the AWS profile to be used when applying this module | `string` | `default` | no |\n| nodes_role | The IAM role created while provisioning the EKS cluster and allows worker node groups to communicate with the control plane | `string` | NA | yes |\n| master_users | A list of users to get `master` permissions on the cluster | `list({username=string arn=string})`. Can be empty.| NA | yes |\n| master_roles | A list of IAM roles to give `master` permissions on the cluster. | `list(string)` | `[]` | no |\n\n\n\n## Contributing\n\nThis module is not feature-complete, eg. it does not support still not-master accounts or other roles. Feel free to submit feedback and ideas in the [issues](https://github.com/koslib/terraform-aws-eks-auth/issues) or submit a [Pull Request](https://github.com/koslib/terraform-aws-eks-auth/pulls)!\n\n## Credits\n\nThis module was inspired by common work and originally collaborated on it with [Paris](https://twitter.com/pariskasid).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoslib%2Fterraform-aws-eks-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkoslib%2Fterraform-aws-eks-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoslib%2Fterraform-aws-eks-auth/lists"}