Utility to help with AWS credential management via SAML. This uses puppeteer
and chromium to go to a user specified login url. After following all redirects
and allowing the user to login, it will intercept the SAMLResponse
and make a
call to Amazon STS to get temporary credentials. These can then be used via the
AWS profiles feature.
$ npm install -g aws-saml-login
Usage: aws-saml-login [options] <login_url>
A simple cli utility to get temporary AWS credentials via a SAML endpoint
Options:
-V, --version output the version number
-b, --basic_auth use basic auth from the cli to login, this will run the browser in
headless mode
-d, --duration <secs> session duration in seconds (default: "3600")
-p, --profile <profile_name> default profile to use
-r, --refresh <profile_name> attempts to refresh an existing profile using config options saved
in "~/.config/aws-saml-login/config". Will create the entry if it
does not exist.
-a, --role_arn <role_arn> role ARN to login as
-h, --help display help for command