{"id":17684397,"url":"https://github.com/luizm/eks-login","last_synced_at":"2025-05-12T23:54:01.645Z","repository":{"id":57525007,"uuid":"221048764","full_name":"luizm/eks-login","owner":"luizm","description":"CLI to automate the EKS login process using STS credentials created by vault","archived":false,"fork":false,"pushed_at":"2020-04-07T00:04:10.000Z","size":51,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-12T23:53:31.421Z","etag":null,"topics":["aws","eks","vault"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/luizm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-11T18:55:27.000Z","updated_at":"2021-06-07T13:08:51.000Z","dependencies_parsed_at":"2022-08-26T03:32:09.623Z","dependency_job_id":null,"html_url":"https://github.com/luizm/eks-login","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luizm%2Feks-login","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luizm%2Feks-login/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luizm%2Feks-login/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luizm%2Feks-login/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luizm","download_url":"https://codeload.github.com/luizm/eks-login/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253843190,"owners_count":21972871,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["aws","eks","vault"],"created_at":"2024-10-24T10:05:18.387Z","updated_at":"2025-05-12T23:54:01.625Z","avatar_url":"https://github.com/luizm.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Description\n\nI would like do use the [hashicorp vault](https://www.vaultproject.io/docs/secrets/aws/index.html) to get temporary [AWS Credencial](https://www.vaultproject.io/docs/secrets/aws/index.html) and using it to access the EKS service.\n\nThe problem is, the STS AWS credentials no valid for more than 12 hours, so, this script will automate the process.\n\n**Auth methods supported:**\n\n- github\n\n### How to use\n\n1. Download the binary from github page or on OsX:\n\n```\nbrew install luizm/tap/eks-login\n```\n\n2. In the correct context into kubeconfig file, edit the `command` block and use `eks-login` instead of `aws cli` or `aws-iam-authenticator`\n\nExample:\n\n```\n- name: cluster-name\n  user:\n    exec:\n      apiVersion: client.authentication.k8s.io/v1alpha1\n      command: eks-login\n      args:\n      - -cluster-name\n      - \u003cCLUSTER_NAME\u003e\n      - -vault-addr\n      - \u003chttps://VAULT_ENDPOINT\u003e\n      - -vault-path\n      - \u003cPATH_TO_GET_THE_CREDENDIALS\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluizm%2Feks-login","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluizm%2Feks-login","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluizm%2Feks-login/lists"}