Skip to content

Instantly share code, notes, and snippets.

View glazari's full-sized avatar

Guilherme de Lázari glazari

View GitHub Profile
@marcosnils
marcosnils / awsmfa.sh
Last active March 19, 2021 17:34
Simple script to use MFA using AWS cli.
#!/bin/bash
# shellcheck disable=SC2102
set -euo pipefail
renew_creds() {
unset AWS_ACCESS_KEY_ID
unset AWS_SECRET_ACCESS_KEY
unset AWS_SESSION_TOKEN