Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aws-credential-process-0.8.0.tar.gz (17.1 kB view details)

Uploaded Source

Built Distribution

aws_credential_process-0.8.0-py3-none-any.whl (17.4 kB view details)

Uploaded Python 3

File details

Details for the file aws-credential-process-0.8.0.tar.gz.

File metadata

  • Download URL: aws-credential-process-0.8.0.tar.gz
  • Upload date:
  • Size: 17.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.8.5 Linux/5.8.13-200.fc32.x86_64

File hashes

Hashes for aws-credential-process-0.8.0.tar.gz
Algorithm Hash digest
SHA256 a80b5cbd576fd03fdc6fb25017fd1477b2b3c2ab1a3b8c84dfe3836cb16e4b14
MD5 6ff3fb8eb04796aa6ee0d796962b8203
BLAKE2b-256 0806bcf3ed0dae0c2d8adf23d42f354a6613dc4f6a65e3eb951b58cab4b00e42

See more details on using hashes here.

File details

Details for the file aws_credential_process-0.8.0-py3-none-any.whl.

File metadata

File hashes

Hashes for aws_credential_process-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c5584975ef2dcce2c855e6d595104793455fa83f99538f5c8efba2084f44d275
MD5 e44f306b8f57722ef6de2b1dfa5c05ce
BLAKE2b-256 3ca3a24ca4d55e7a568db7bb3b2079fc2eca692386d739339e94cdbdc55ff2d5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page