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
Metadata
Release files for aws-session-credentials 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| aws-session-credentials-0.1.5.tar.gz | 5.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aws_session_credentials-0.1.5-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 12.2 kB
Release files / aws-session-credentials-0.1.5.tar.gz
| Download URL | aws-session-credentials-0.1.5.tar.gz |
|---|---|
| Size | 5.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2c0a7a6069949321b727ff98fbe8c49795c52b01af813ccdba23df8b396920f3
|
|
BLAKE2b-256 checksum How to use checksums |
6c3bf4b384a75d3153a47a9cd1c253e9267a4f5014dbaaa9d6950d8af0d5dbfa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / aws_session_credentials-0.1.5-py2.py3-none-any.whl
| Download URL | aws_session_credentials-0.1.5-py2.py3-none-any.whl |
|---|---|
| Size | 6.5 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
3ff94ea6b2cc1542c50718f9e93d1c62518b1edc7e33da7580b0e59a41bbfcea
|
|
BLAKE2b-256 checksum How to use checksums |
d6fecc8bac40a6734e4c8b6f221c4e7a471058ad137aaf4c05df4a0f85d4a736
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for aws-session-credentials 0.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.