Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

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

Project description



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



    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


python3 -m aws_session get

Create Package

python3 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.

Files for aws-session, version 5.2.0
Filename, size File type Python version Upload date Hashes
Filename, size aws_session-5.2.0-py3-none-any.whl (7.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size aws-session-5.2.0.tar.gz (6.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page