Skip to content

Instantly share code, notes, and snippets.

@JoanBelder
JoanBelder / aws-mfa
Created March 1, 2021 12:14
Do multi-factor authentication for an aws CLI profile.
#!/bin/bash
# Do multi-factor authentication for an aws CLI profile.
set -euo pipefail
shopt -s inherit_errexit
function print_help() {
echo "Do multi-factor authentication for an aws CLI profile."
echo ""
echo "Usage:"