aws-session
A CLI to generate and store session credentials in ~/.aws/credentials file, based on ~/.aws/config profiles
Install
pip3 install aws-session
Usage
get session credentials:
aws-session get [--profile/-p <profile_name>]
--profile/-p <profile_name> : select profile ['default']
--force/-f : force new session
To create MFA user sessions just add `mfa_serial` to profile config in ~/.aws/config profiles
list session profiles:
aws-session list
purge expired session profiles:
aws-session purge
--force/-f : purge all session profiles regardles of expiration
print help
aws-session help
Setup dev environment
Install Dev Dependencies
export PATH="${PATH}:/Users/${USER}/Library/Python/3.7/bin"
export PYTHONPATH="${PYTHONPATH}:/Users/${USER}/Library/Python/3.7/bin"
pip3 install --user -r requirements.txt
pip3 install --user -r requirements-dev.txt
Run
python3 -m aws_session get
Create Package
python3 setup.py clean --all sdist bdist_wheel
Local Install
pip3 install --force-reinstall --no-deps dist/aws_session-*-py3-none-any.whl
Deploy to PiPy
twine upload dist/*
Metadata
Release files for aws-session 5.5.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 | |
|---|---|---|---|
| aws-session-5.5.0.tar.gz | 4.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aws_session-5.5.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.9 kB
Release files / aws-session-5.5.0.tar.gz
| Download URL | aws-session-5.5.0.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3f0bea1c2ec555f6b723ded13e1705623b8837c71fedba180e6086e01f370b21
|
|
BLAKE2b-256 checksum How to use checksums |
735a0c63fca9b02875c7aef15ce0647a154f632ef97f1e19d334aa4825d8e6d4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0
|
Release files / aws_session-5.5.0-py3-none-any.whl
| Download URL | aws_session-5.5.0-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
99f1a76cf9e9a8bb15dd51ccbe5464b7b6d5d90eda54408f706e34f206f3d49b
|
|
BLAKE2b-256 checksum How to use checksums |
ac7f4ccbaec427ed0e1cce2d93022cda56e488152fc7d601917ea1e52dc5f0ec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0
|