For folks using the SAML to AWS STS keys conversion
extension in Chrome to use their AWS account from the CLI that might have a prior version of my automatic 'credentials' slurper - I made some improvements to that script to allow exporting the temporary credentials directly to the ENV instead of only being able to set a profile in ~/.aws/credentials
Usage:
/> source path/to/script.sh <profile to slurp> # sets up profile in ~/.aws/credentials & exports AWS_PROFILE accordingly
/> source path/to/script.sh -e <profile to slurp> # sets AWS_* vars in current shell for apps that can't use profile credentials
Note: Each invocation undoes the vars set by the opposite invocation (you can't have both set and get predictable results)