Export AWS credentials to shell variables

export AWS_ACCESS_KEY_ID=$(aws --profile default configure get aws_access_key_id)
export AWS_SECRET_ACCESS_KEY=$(aws --profile default configure get aws_secret_access_key)
export AWS_SESSION_TOKEN=$(aws --profile default configure get aws_session_token)

If you want to use other than default profile, simply replace default with the desired value.