AWS Credential Process
Project description
Description
Script to use as credential_process
for the AWS CLI (including boto3), it caches your MFA session in a keyring and can use a Yubi key to authenticate.
Installing
You can install aws-credential-process using pip:
pip install aws_credential_process
I recommend to install aws-credential-process in a virtualenv:
virtualenv ~/venv/aws_credential_process
~/venv/aws_credential_process/bin/pip install aws_credential_process
After the above commands you should be able to run ~/venv/aws_credential_process/bin/aws-credential-process
Usage
You can use the following arguments to start aws-credential-process:
Usage: aws-credential-process [OPTIONS]
Get output suitable for aws credential process
Options:
--access-key-id TEXT
--secret-access-key TEXT
--mfa-oath-slot TEXT
--mfa-serial-number TEXT [required]
--mfa-session-duration INTEGER
--assume-session-duration INTEGER
--assume-role-arn TEXT
--force-renew
--credentials-section TEXT
--help Show this message and exit.
aws-credential-process is meant to be used as credential_process
in your .aws/config
file. For example:
[profile yourprofile]
credential_process = /home/user/venv/aws_credential_process/bin/aws-credential-process --oath-slot "Amazon Web Services:test@example.com" --serial-number arn:aws:iam::123456789012:mfa/john.doe --role-arn arn:aws:iam::123456789012:role/YourRole
If you've supplied the secret-access-key once you can omit it with the next call, it will be cached in your keyring.
When you don't supply the access-key-id it will be loaded from ~/.aws/credentials
. You can use another section than "default" by using the credentials-section argument.
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
Hashes for aws-credential-process-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c1d6414a3d8db18254aae1615efd01cbe062a802089a944be8b51c64feef8b9 |
|
MD5 | c3ec6bc32c9128753754d16d9da9dd3f |
|
BLAKE2b-256 | 53b3ce9e667b6e8c35a7e6836fceadb44bdb9980fe0b36e9b3c1358dc379d0f1 |
Hashes for aws_credential_process-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6eea889f4d08ffc45b9ee145b8aab20887f0a473eade4818f6ec175a96d4fa8 |
|
MD5 | 8f44b005f9cdeb8fdce126ceb1dffd05 |
|
BLAKE2b-256 | 0d9021b4b8e21b4cbd728c37d3d40332e3f838fb474216ff7fd5f1fe6b6b466a |