aws-sso-manager
A simple AWS SSO Manager that makes authenticating between multiple profiles, roles, and SSO domains a breeze.
Overview
aws-sso-manager is a simple cli to manage auth for aws sso accounts and roles.
Setup
pip3 install awsssomanager
or
poetry add awsssomanager
Config file
Create a config file. You can create a config file for each ssoDomain.
ssoDomain: 'myssodomain' # Your aws sso domain (<sso domain>.awsapps.com)
region: 'us-east-1' # The aws region where your aws sso is configured.
default:
loginAccount: '1234567890' # The default account you want mapped to the profile: default
role_priority:
- "ViewOnlyAccess"
- "PowerUserAccess"
- "PowerUserPlus"
- "AdministratorAccess"
Configure ssoDomain
$ aws-sso-manager configure /path/to/config/file
All done!
Daily Operation
Whenever your tokens expire, you will need to run the command:
$ aws-sso-manager login
Easy Profiles
Profiles are automatically generated in the following formats and can be used directly after credentials are acquired:
<account_id>_<role_name>
<account_id>
<account_name>
Usage
$ AWS_PROFILE=<proile_name> aws s3 ls
Example
1234567890 = dev
$ AWS_PROFILE=dev aws s3 ls
$ AWS_PROFILE=1234567890 aws s3 ls
$ AWS_PROFILE=1234567890_AdministratorAccess aws s3 ls
Python
AWS_AIOSESSION = AioSession(profile='dev')
AWS_SESSION = Session(profile_name='dev')
Help :construction_worker:
Join us in discussions
I use GitHub Discussions to talk about all sorts of topics related to this repo.
Open an issue
First, check out the existing issues. If you spot something new, open an issue. We'll use the issue to have a conversation about the problem you want to fix, and I'll try to get to it as soon as I can.
Metadata
Release files for awsssomanager 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| awsssomanager-0.3.0.tar.gz | 10.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| awsssomanager-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 24.9 kB
Release files / awsssomanager-0.3.0.tar.gz
| Download URL | awsssomanager-0.3.0.tar.gz |
|---|---|
| Size | 10.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
be0937d1b0cb95f7080425a135ba0b5480232ef99c38ef12c40506c7cba4ee17
|
|
BLAKE2b-256 checksum How to use checksums |
b6887b0116abded71c749044920bb5b6a4c17c9004d9449e713c8f2dc0307208
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.3 Linux/6.8.0-1014-azure
|
Release files / awsssomanager-0.3.0-py3-none-any.whl
| Download URL | awsssomanager-0.3.0-py3-none-any.whl |
|---|---|
| Size | 14.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
77c12d16b3c9963b8dfba84c9896058092e10460b032bf11fab53662d01f432e
|
|
BLAKE2b-256 checksum How to use checksums |
403cbedf4b07515e67bc2cc8271cd206a5eb959b8e21344dfdfad64855df337c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.3 Linux/6.8.0-1014-azure
|
Security for awsssomanager 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.