Skip to main content

Manage AWS session credentials

Project description

https://travis-ci.org/thumbtack/aws-session-credentials.svg?branch=master https://img.shields.io/pypi/v/aws-session-credentials.svg https://img.shields.io/pypi/l/aws-session-credentials.svg

This python package provides a method for mfa-authenticated API access to AWS resources.

This tool is just one part of a larger setup that forces programmatic requests to the AWS API to be authenticated with multi-factor authentication. For details on how to configure IAM to forbid non-mfa-authenticated access to AWS resources, consult this AWS guide.

CLI Tool Setup

To install the aws-session-credentials CLI tool, simply install this package via pip:

pip install git+ssh://git@github.com/thumbtack/aws-session-credentials.git
aws-session-credentials --help

This package is both Python2 and Python3 compliant and can be safely used in either environment.

An independent executable is also available on the GitHub releases page.

For details and examples on invoking the CLI tool, run aws-session-credentials --help.

Development

This repository is structured as a python package. When working on this project, it is recommended to install the package in development mode:

git clone git@github.com:thumbtack/aws-session-credentials.git
pip install -e .

Running tests

Tests can be run with:

python -m unittest discover

Release tests are run against both a Python2 and Python3 environment, so it is recommended to locally test changes using both editions of Python.

Building pex executables

The pex project can be used to build an executable file for the CLI tool:

pip install pex
pex . -m aws_session_credentials -o aws-session-credentials

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-credentials-0.1.2.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

aws_session_credentials-0.1.2-py2.py3-none-any.whl (8.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file aws-session-credentials-0.1.2.tar.gz.

File metadata

File hashes

Hashes for aws-session-credentials-0.1.2.tar.gz
Algorithm Hash digest
SHA256 447b041450b7634058e16487822778799b780fd6873e13c86a3a62cd69ebd92e
MD5 a75560a88ff288a10f8309dc9d21a429
BLAKE2b-256 85f6ad94e78aa06d2353b85a7ef06ed43d9462b54abb9034202b01d32ee55728

See more details on using hashes here.

File details

Details for the file aws_session_credentials-0.1.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for aws_session_credentials-0.1.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3a1b3563b3c1432c44f05a9471be0ce41e30bb8738db06e0cc369e01df518eeb
MD5 6c1439fe87e00c07799793cbaba442a0
BLAKE2b-256 a2f70eedc87d86e5be0cc4be38c1028da81bae4977df34b85a9efeddf1aa6b68

See more details on using hashes here.

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