Command Line tool for AWS SSO Credentials
Project description
aws-sso
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
Attention!
This package relies on Selenium and Google Chrome to work. Therefore, you need Google Chrome and ChromeDriver to be installed.
Installation
pip install awssso
Dependencies
macOS
brew cask install chromedriver
Getting Started
Configure a profile
$ awssso configure
[?] URL: https://d-0123456789.awsapps.com/start/
[?] AWS CLI profile: my-awssso-profile
[?] Username: me@example.com
[?] Password: **************
[?] MFA Code: 042042
[?] AWS Account: 000000000000 (Master)
111111111111 (Log archive)
222222222222 (Audit)
> 000000000000 (Master)
[?] AWS Profile: AWSAdministratorAccess
AWSServiceCatalogEndUserAccess
> 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
export AWS_ACCESS_KEY_ID=ACCESS_KEY_ID
export AWS_SECRET_ACCESS_KEY=SECRET_ACCESS_KEY
export AWS_SESSION_TOKEN=SESSION_TOKEN
This will echo export
commands to stdout ; can be used like this $(awssso login -e)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
awssso-0.0.1a2.tar.gz
(20.9 kB
view hashes)
Built Distribution
Close
Hashes for awssso-0.0.1a2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5241dc7f32d078eb3d8761e2f0cea5723f3ad182504ca12c195508eca896f2c |
|
MD5 | 6f6887d7e42133187a4d6998edef68b0 |
|
BLAKE2b-256 | d6aa9bfa120cd42a5e635805f9b1ae3d8f8941cdeeb9628f5bd79bce6ece9005 |