/sso-me

Login to aws using SSO and write credentials to your aws credentials file

Primary LanguageShellMIT LicenseMIT

sso-me

Login to aws using SSO and write credentials to your aws credentials file

Requirements

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.

Installing

Run ./install.sh to install to your /usr/local/bin directory

Usage

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.

Disclaimer

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.