Skip to main content

A CLI to generate session credentials based on ~/.aws/config profiles and store them as profile in ~/.aws/credentials file

Project description

aws-session

PyPI

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/*

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

aws-session-5.5.0.tar.gz (4.8 kB view hashes)

Uploaded Source

Built Distribution

aws_session-5.5.0-py3-none-any.whl (5.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page