A small CLI to help with creating AWS profile for MFA protected sessions
Project description
STS MFA CLI
Creating temporary profiles for MFA protected accounts using AWS STS is too hard. This is a small CLI that helps with that.
Installation
Install this via pip (or your favourite package manager):
pip install stsmfa-cli
Usage
The CLI is a single command stsmfa
that can be used to create temporary profiles for MFA protected accounts.
stsmfa my-profile-name 123456
This will create a session using the MFA serial defined under my-profile-name
with the TOTP 123456
, and save the required AWS key, secret and token under as a new profile my-profile-name-mfa
in you ~/.aws/credentials
file.
Now to use it, you just need to set AWS_PROFILE=my-profile-name-mfa
.
Contributors ✨
Thanks goes to these wonderful people (emoji key):
Bruno Alla 💻 🤔 📖 |
This project follows the all-contributors specification. Contributions of any kind welcome!
Credits
This package was created with Copier and the browniebroke/pypackage-template project template.
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
Built Distribution
File details
Details for the file stsmfa_cli-0.1.0.tar.gz
.
File metadata
- Download URL: stsmfa_cli-0.1.0.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.9.2 readme-renderer/37.3 requests/2.28.1 requests-toolbelt/0.10.1 urllib3/1.26.13 tqdm/4.64.1 importlib-metadata/5.1.0 keyring/23.11.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f01e1c063ac8252cb6df2d1a26188e0bd129133d1e353ff583df46a1af6b4fc |
|
MD5 | 0432977292963b3be46f7f280a7c5893 |
|
BLAKE2b-256 | ccba4fc01e0ce5aa3bfa313f6269bd33db8027218dddb78164667aa987660ec4 |
File details
Details for the file stsmfa_cli-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: stsmfa_cli-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.9.2 readme-renderer/37.3 requests/2.28.1 requests-toolbelt/0.10.1 urllib3/1.26.13 tqdm/4.64.1 importlib-metadata/5.1.0 keyring/23.11.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b96e00f7a4ab2d6729db44af3250a9be977e32e6ea623a56c690b186daef25b |
|
MD5 | f715744537dfe97350ab4ce76db60e7c |
|
BLAKE2b-256 | 229213301ede51bcf00b749f24e77dde165b626c228314552053332e59be2c11 |