Skip to content

CLI to automate the EKS login process using STS credentials created by vault

Notifications You must be signed in to change notification settings

luizm/eks-login

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

I would like do use the hashicorp vault to get temporary AWS Credencial and using it to access the EKS service.

The problem is, the STS AWS credentials no valid for more than 12 hours, so, this script will automate the process.

Auth methods supported:

  • github

How to use

  1. Download the binary from github page or on OsX:
brew install luizm/tap/eks-login
  1. In the correct context into kubeconfig file, edit the command block and use eks-login instead of aws cli or aws-iam-authenticator

Example:

- name: cluster-name
  user:
    exec:
      apiVersion: client.authentication.k8s.io/v1alpha1
      command: eks-login
      args:
      - -cluster-name
      - <CLUSTER_NAME>
      - -vault-addr
      - <https://VAULT_ENDPOINT>
      - -vault-path
      - <PATH_TO_GET_THE_CREDENDIALS>

About

CLI to automate the EKS login process using STS credentials created by vault

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages