Login to aws using SSO and write credentials to your aws credentials file
This tool depends on the aws
cli v2 and jq
.
Installation instructions for aws
cli can be found here.
Installation instructions for jq
can be found here.
Run ./install.sh
to install to your /usr/local/bin
directory
You will need a ~/.aws/config
file with the following:
[default]
sso_start_url=<your value>
sso_region=<your value>
sso_account_id=<your value>
sso_role_name=<your value>
region=<your value>
Then run sso-me
to login to aws using SSO and write credentials to your aws credentials file.
I do not accept responsibility for any effects, adverse or otherwise, that this code may have on you, your computer, your sanity, your dog, and anything else that you can think of. Use it at your own risk.