mirror of https://github.com/kubernetes/kops.git
Merge pull request #13591 from techieforfun/patch-1
doc(mfa): add another workaround using aws-vault
This commit is contained in:
commit
8e7724df6f
10
docs/mfa.md
10
docs/mfa.md
|
|
@ -66,3 +66,13 @@ Use [awsudo](https://github.com/makethunder/awsudo) to generate temp credentials
|
|||
pip install awsudo
|
||||
env $(awsudo ${AWS_PROFILE} | grep AWS | xargs) kops ...
|
||||
```
|
||||
|
||||
## The Workaround #3
|
||||
|
||||
Use [aws-vault](https://github.com/99designs/aws-vault) to generate temp session credentials. After setting up `aws-vault`, use alias for `kops` command. This way terminal will ask for MFA each time the credential session is expired. Commands would be:
|
||||
|
||||
```bash
|
||||
AWS_PROFILE=sandbox
|
||||
aws-vault add $AWS_PROFILE
|
||||
alias kops="aws-vault exec ${AWS_PROFILE} -- kops"
|
||||
```
|
||||
|
|
|
|||
Loading…
Reference in New Issue