1.3.3 • Published 4 years ago
alfalfamale-aws-sso-creds-helper v1.3.3
AWS SSO Credentials Helper
When using aws sso login on AWS CLI v2
as of July 27th, 2020, the credentials are stored so they will work with the CLI
itself (v2) but don't work on the AWS SDKs and other tools that expect credentials
to be readable from ~/.aws/credentials (v1).
This package aims to streamline updating the AWS credentials file for AWS SSO users by
updating/creating the corresponding profile section in ~/.aws/credentials with
temporary role credentials. Once a solution is implemented in AWS CLI v2, this
repo will be archived.
Install
$ npm install -g aws-sso-creds-helperUsage
Usage: ssocreds [options]
Options:
  -V, --version            output the version number
  -p, --profile <profile>  profile to use for obtaining sso credentials (default: "default")
  -d, --debug              enables verbose logging (default: false)
  -v, --verbose            enables verbose logging (default: false)
  -u, --use-proxy          flag for the aws sdk to use HTTPS_PROXY found in env (default: false)
  -h, --help               display help for commandExample:
$ ssocreds -p my-profile
[aws-sso-creds-helper]: Getting SSO credentials for profile my-profile
[aws-sso-creds-helper]: Successfully loaded SSO credentials for profile my-profileor create an alias in your shell containing
alias awsmyprofile="ssocreds -p my-profile"or combine with a profile switching script if you use multiple profiles to switch profiles and then grab the credentials in one command
alias awsmyprofile="awsp my-profile && ssocreds -p my-profile"1.3.3
4 years ago