A CLI to generate session credentials based on ~/.aws/config profiles and store them as profile in ~/.aws/credentials file
Project description
aws-session
A CLI to generate and store session credentials in ~/.aws/credentials
file, based on ~/.aws/config profiles
Usage
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 `session_mfa_serial` to profile config in ~/.aws/config profiles
[profile john]
session_mfa_serial = arn:aws:iam::0123456789:mfa/john
list session profiles:
aws-session list
print help
aws-session help
Setup dev environment
Install Dev Dependencies
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/*
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
aws-session-5.2.0.tar.gz
(6.4 kB
view hashes)
Built Distribution
Close
Hashes for aws_session-5.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ddadc245b9a5df787fe4986f33df95e4f65cf1ff9c24f2a8dcf2f1608adf556a |
|
MD5 | 515c26aeebfb2f18ddd1f5ff66f02b27 |
|
BLAKE2b-256 | c899e885e0fcb8295e484a185e692d05eaff0520705347ca8f19f0f62c5bb4b9 |