Skip to content

Instantly share code, notes, and snippets.

View chtorr's full-sized avatar

Romesh McCullough chtorr

View GitHub Profile
@chtorr
chtorr / helpers.sh
Last active June 18, 2021 13:36
aws-vault yubikey bash helpers
# - install the Yubico authenticator app
# - install ykman
# - setup your yubikey as a virtual MFA device in AWS, 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