Credentials Manager for AWS CLI v2
This program helps generate Credential for IAM users with MFA enabled. It's build to ease out generating credentials and storing them in a credentials file for further use.
Installation
Install the module
pip install awscli_mfa_token_manager
How it works
This tool needs a basic config file with one or more profiles and region, output settings to work. Let's say you want to generate tokens using a config file in /opt/app/cloud/.aws directory. When you are running it for the first time, for an IAM user that has for example, a virtual MFA device use the following arguments
manage_credentials --profile mfa --serial-number arn:aws:iam::[IAM-ACCOUNTID]:mfa/[IAM-USERNAME[] --credentials-dir /opt/app/cloud/.aws --token XXXXXX --expires 86400
Where
mfa: is the profile you want to useserial_number: is the MFA device ARNcredentials-diris the location ofconfigfile , this is location where credentials file will also be savedtokenis the MFA token code- expires is lifetime duration of the token in seconds
This command would:
- Fetch credentials using the serial and token code
- Create the
credentialsfile in directory/opt/app/cloud/.aws - Update the
configfile to addmfa_serial
You can then run
manage_credentials --profile mfa --token XXXXXX --credentials-dir /opt/app/cloud/.aws
to refresh token for this config / profile
Default Values
The following default values are used, which makes these parameters optional
- profile:
default - credentials-dir: defaults to
[user.home]/.aws - expires: defaults to
43200(sts default value)
Metadata
Release files for awscli-mfa-token-manager 1.0.1
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 | |
|---|---|---|---|---|
| awscli_mfa_token_manager-1.0.1.tar.gz | 15.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| awscli_mfa_token_manager-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 31.9 kB
Release files / awscli_mfa_token_manager-1.0.1.tar.gz
| Download URL | awscli_mfa_token_manager-1.0.1.tar.gz |
|---|---|
| Size | 15.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
17fa0bee886a5fd015a70dd9f2e22c0d08cd6c69e66e7cadbde4e8200a08ec06
|
|
BLAKE2b-256 checksum How to use checksums |
5403c113c564608ff661a1c60d0f26a99d7dede94f4f89b0b3e31c235c94b1d4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0
|
Release files / awscli_mfa_token_manager-1.0.1-py3-none-any.whl
| Download URL | awscli_mfa_token_manager-1.0.1-py3-none-any.whl |
|---|---|
| Size | 16.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
97299dcc9eb45ac21e5a1b96a478c6e91c54b9ec452b3bc824f0c9e32373f9b1
|
|
BLAKE2b-256 checksum How to use checksums |
20e60c03e57fe2e9c3198cc0cf692411750068715712365ad69aa76802425072
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0
|
Security for awscli-mfa-token-manager 1.0.1
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.