Useful for manipulating Credentials generated using AWS CLI sts:assume role
This helper assumes you have configured aws-cli tool to handle multiple profiles and assumes that you have exported the profile you wish to use as the AWS_DEFAULT_PROFILE
variable
export AWS_DEFAULT_PROFILE=Dev
aws ec2 describe-instances
# prompt for MFA token
# Command output ...
eval $(~/bin/env2.py --shell)
eval $(~/bin/env2.py --unset)
Enjoy!