Seamlessly converts role assumption outputs from AWS CLI AssumeRole
or Vault AWS Secret Engine
into an AWS cli credentials.
Download from Release and move binary to PATH
aws sts assume-role \
--role-arn=arn:aws:iam::123456789012:role/foo-role \
--role-session-name=bar-name | sts2credentials
aws sts get-session-token \
--serial-number=arn:aws:iam::123456789012:mfa/foo-user \
--token-code=123456 | sts2credentials
vault read aws/creds/my-role -format=json | sts2credentials
--profile (Default sts)
Change target profile name
aws sts assume-role \
--role-arn=arn:aws:iam::123456789012:role/foo-role \
--role-session-name=bar-name --profile=default | sts2credentials --profile=myprofile
--help
shows help message
This tool has been recoded to this Git Repository