An open API service indexing awesome lists of open source software.

https://github.com/luizm/eks-login

CLI to automate the EKS login process using STS credentials created by vault
https://github.com/luizm/eks-login

aws eks vault

Last synced: about 1 year ago
JSON representation

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

Awesome Lists containing this project

README

          

### Description

I 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.

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
```

2. 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
-
- -vault-addr
-
- -vault-path
-
```