DEV Community

Kay for AWS Community Builders

Posted on

saml2aws-multi: a simple tool providing an easy-to-use command line interface for saml2aws

saml2aws-multi is a simple tool I created for using saml2aws more effectively on day-to-day tasks. saml2aws-multi provides an easy-to-use command line interface to support login and retrieve AWS temporary credentials for multiple roles of different accounts with saml2aws.

Example:

Example-ListRoleNames

Usage

$ awslogin --help
Usage: awslogin [OPTIONS] COMMAND [ARGS]...

  Get credentials for multiple accounts with saml2aws

Options:
  -k, --keyword TEXT              Pre-select roles with the given keyword(s)
  -f, --profile-name-format [RoleName|RoleName-AccountAlias]
                                  Profile name format  [default: RoleName]
  -r, --refresh-cached-roles      [default: False]
  -t, --session-duration TEXT     Session duration in seconds
  -d, --debug                     [default: False]
  --help                          Show this message and exit.

Commands:
  chained  List chained role profiles specified in ~/.aws/config
  switch   Switch default profile
  whoami   Who am I?
Enter fullscreen mode Exit fullscreen mode

For detailed instruction and source see kyhau/saml2aws-multi.

Top comments (0)