Skip to main content

Command Line tool for AWS SSO Credentials

Project description


PyPi Version

This package provides a command line interface to get AWS credentials with AWS SSO.

The aws-cli package works on Python versions:

  • 3.7.x and greater


This package relies on Selenium and Google Chrome to work. Therefore, you need Google Chrome and ChromeDriver to be installed.


pip install awssso



brew cask install chromedriver

Getting Started

Configure a profile

$ awssso configure
[?] URL:
[?] AWS CLI profile: my-awssso-profile
[?] Username:
[?] Password: **************
[?] MFA Code: 042042
[?] AWS Account: 000000000000 (Master)
   111111111111 (Log archive)
   222222222222 (Audit)
 > 000000000000 (Master)

[?] AWS Profile: AWSAdministratorAccess
 > AWSAdministratorAccess

This will create a configuration file in ~/.awssso/config.

Get credentials

$ awssso login

This will get the credentials for the profile as defined in the configuration file and use aws-cli to set those credentials to the correct AWS Profile.

$ awssso login -e

This will echo export commands to stdout ; can be used like this $(awssso login -e)

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for awssso, version 0.0.1a2
Filename, size File type Python version Upload date Hashes
Filename, size awssso-0.0.1a2.tar.gz (20.9 kB) File type Source Python version None Upload date Hashes View
Filename, size awssso-0.0.1a2-py2.py3-none-any.whl (12.9 kB) File type Wheel Python version py2.py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page