Skip to content

Instantly share code, notes, and snippets.

@kwilczynski
Created March 19, 2019 14:34
Show Gist options
  • Save kwilczynski/702144cc21fd9d33f7684b6f2a011853 to your computer and use it in GitHub Desktop.
Save kwilczynski/702144cc21fd9d33f7684b6f2a011853 to your computer and use it in GitHub Desktop.
aws-mfa-refresh() {
local token="$1"
local duration='43200'
if [[ "x$token" == 'x' ]]; then
read -p 'Token: ' token
fi
aws-mfa --token "$token" --duration "$duration"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment