Skip to content

Instantly share code, notes, and snippets.

@danielricart
danielricart / helpers.sh
Last active September 7, 2019 22:39 — forked from chtorr/helpers.sh
aws-vault yubikey bash helpers
# - install the Yubico authenticator app
# - install ykman
# - setup your yubikey as a virtual MFA device in AWS using yubico Authenticator as QR Code reader, and
# - install and setup AWS vault
# - place the following in your ~/.bash_profile (or whatever the appropriate profile file is)
# - run source ~/.bash_profile or open a new shell
# load temp AWS credentials in your current shell: `aws_auth <profile>`
# login to AWS console with temp credentials: `aws_login <profile`
# I also like to add the vault name to my shell prompt: \033[0;31m[\$AWS_VAULT]\033[0m