Skip to content

Instantly share code, notes, and snippets.

View dominics's full-sized avatar

Dominic Scheirlinck dominics

View GitHub Profile
@dominics
dominics / ykaws-helpers.sh
Last active November 14, 2019 23:06 — forked from chtorr/helpers.sh
aws-vault yubikey bash/zsh helpers
# Helper script providing `ykaws-auth <profile>` and `ykaws-login <profile>` helpers
#
# Initial Yubikey setup:
# - Install and configure Yubico Authenticator, ykman, AWS Vault
# - Configure your AWS MFA device to be stored in your Yubikey
# - Set a YKAWS_PROFILE environment variable to the TOTP profile name (list with `ykman oath list`) in your shell startup scripts
# - You'll know you're ready when `ykman oath code --single "$YKAWS_PROFILE"` returns an MFA code
#
# Installing this helper:
# - Put it somewhere