Skip to content

Instantly share code, notes, and snippets.


Colin Saliceti saliceti

  • Department for Education
View GitHub Profile
saliceti /
Created Jan 5, 2017 — forked from keymon/
Get temporary credentials from AWS using a MFA token, also assuming role: you can assume a role ⁠⁠⁠⁠./ elasticache-broker-spike-role⁠⁠⁠⁠ or create new tokens for yourself ⁠⁠⁠⁠./ me 900⁠⁠⁠⁠
usage() {
cat <<EOF
Creates a set of tokens assuming the given role. Use "me" as role to simply generate a new session token for your user.
$SCRIPT_NAME <role name> [duration in seconds]