AWS Credential Picker (aws-creds)
Makes it easier to use multiple AWS accounts when you don't have SSO available. You can easily save multiple profiles, and then log into them with an simple set of commands.
Installing
This utility is available in PyPi and can be installed by running:
python3 -m pip install aws-creds
Usage
MacBook-Pro:aws-creds HammoTime$ aws-creds --help
Usage: aws-creds [OPTIONS] COMMAND [ARGS]...
aws-creds makes it easier to use multiple AWS accounts when you don't have
SSO available. You can easily save multiple profiles, and then log into
them with an simple set of commands.
Options:
--version Show the version and exit.
--help Show this message and exit.
Commands:
add Adds a new credential profile.
default Used to set the defaults for output type and region.
login Sets the user's AWS credentials to the selected profile.
logout Deletes user's current AWS credentials.
ls Lists all of the saved profiles.
rm Deletes the selected profile.
role Used to login using an assumed role.
rotate Automatically rotates your access keys.
status Prints out information about the credential that is currently in...
update Updates the selected profile with the new values.
Commands
The following commands are available within the AWS Credential Picker.
add: Add a new credential.rm: Remove a credential.ls: List all the saved credentials.login: Login using a credential.logout: Remove all of the files used by the aws-cli in ~/.aws.status: Print details about the current session (account/user).update: Updates the selected profile with new values.rotate: Rotates your Access Key if you have a spare slot available.default: Used to manage default region and output type.get: Prints out the default region and output type.set: Sets the default region and output type.
role: Used to manage roles that can be assumed from the cli.add: Adds a role.assume: Assumes a saved role.ls: Lists all roles available to be assumed.rm: Removes an assumed role permanently from aws-cred config.unassume: Unassumes a role, switching back to source account.
Options
The following options are available within the AWS Credential Picker.
--help: Show the help screen.--version: Print version details.
How it Works
The AWS Credential Picker is quite simple in it's design. Instead of storing details in the credentials file - which can prove difficult to use with lots of profiles - we store them in a custom JSON file. When you login, you're actually doing is creating the credentials and the config file in ~/.aws. When you logout, these files are being deleted.
The reason this was created is that some AWS Utilities and 3rd Party Tools REALLY do not like it if you have multiple profiles and do not treat environment variables correctly. By always having a single credential set, utilities will ALWAYS work.
This script also provides an update on how old your Access Key is and advises you when to rotate them.
Dependencies
Metadata
Release files for aws-creds 2.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 | Actions |
|---|---|---|---|---|
| aws-creds-2.0.1.tar.gz | 9.5 kB | Without provenance | Details for aws-creds-2.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aws_creds-2.0.1-py3-none-any.whl | Python 3 | none | any | Details for aws_creds-2.0.1-py3-none-any.whl |
Total release size: 21.4 kB
Release files / aws-creds-2.0.1.tar.gz
| Download URL | aws-creds-2.0.1.tar.gz |
|---|---|
| Size | 9.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4a4e43a9ec223f4bdcf18041b43b488d08c42db2724dfc4719299365b6f53305
|
|
BLAKE2b-256 checksum How to use checksums |
c1ca56aac32bcd2f014126f0bafd9e2c88427b484138294df7712e1f650dc812
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
|
Release files / aws_creds-2.0.1-py3-none-any.whl
| Download URL | aws_creds-2.0.1-py3-none-any.whl |
|---|---|
| Size | 11.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3b33b44a62b85b99af5bcbf4d626004db76d68c1407e9f0c201deb9cd297ac02
|
|
BLAKE2b-256 checksum How to use checksums |
5904367ba82f7daad9a0d75d329903d1b1a65e1087d7a5e3be530f05f7da6e02
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
|
Security for aws-creds 2.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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.