AWS SSO Manager
Project description
aws-sso-manager
Simple AWS SSO Manager that makes authenticating between multiple profiles and roles 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
.
default:
loginAccount: '1234567890'
ssoDomain: 'myssodomain'
region: 'us-east-1'
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.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for awsssomanager-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f7868f77d894d8fc3a3211eb438283a7e96a5c5ee250340149e6073d52e8d73 |
|
MD5 | 255e59a6d759626732ed287764594ba4 |
|
BLAKE2b-256 | 22942279a25a99ed7a9970abe02d9263163aa3fdb333b94b7fbc5573338974ee |