AWS STS Get MFA Profile
Use this package to automatically setup an MFA enabled profile for AWS CLI
- Install AWS CLI
- Sign up for MFA in the AWS IAM Management console (if you haven't already) and note the MFA ARN.
- Create an access key in the AWS IAM Management console (if you haven't already) and note the access key id and secret.
- Create a credential text file profile in your home directory (
'C:\Users\SamuelMercer\.aws\credentials') by running
aws configure --profile mfa
- Add your
mfa_serialmanually by running
aws configure set mfa_serial --profile mfa "arn:aws:iam::467792...:mfa/..."
- Install the python package using pip
> python -m pip install aws-sts-get-mfa-profile
- Run the script
get-sts-token.pyusing the required length of token in seconds (don't do more than 1 day == 86400 seconds)
> get-sts-token.py
- When making AWS CLI calls from now on it should work, e.g.
> aws iam list-users
{
"Users": [
{
...
Metadata
Release files for aws-sts-get-mfa-profile 1.2.2
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-sts-get-mfa-profile-1.2.2.tar.gz | 6.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aws_sts_get_mfa_profile-1.2.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.1 kB
Release files / aws-sts-get-mfa-profile-1.2.2.tar.gz
| Download URL | aws-sts-get-mfa-profile-1.2.2.tar.gz |
|---|---|
| Size | 6.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3e867a04d682854e64f11f03e73f0cd7e303d2ed393801df2cf8384af077feff
|
|
BLAKE2b-256 checksum How to use checksums |
475bcb291711e7cca117b9d6f7f4de9633ed94da85fb7a201a01d3d901c1c053
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.8
|
Release files / aws_sts_get_mfa_profile-1.2.2-py3-none-any.whl
| Download URL | aws_sts_get_mfa_profile-1.2.2-py3-none-any.whl |
|---|---|
| Size | 7.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4f9997536b071c2d81ba60de9a3a2600d5d2a569d905b682412e91df4cd33423
|
|
BLAKE2b-256 checksum How to use checksums |
ccd49abb9f553d52405f02b2008f5295d52e30a09dae555035b6b1fced16fa43
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.8
|
Security for aws-sts-get-mfa-profile 1.2.2
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.