No project description provided
Project description
Yubikey authentication for AWS CLI (and boto) made easy
This plugin enables aws-cli to directly talk to your YubiKey to acquire an OATH-TOTP code using the YubiKey's CCID application.
Currently, FIDO-U2F is unsupported on both, botocore and aws-cli. Using aws-cli with roles and a regular OATH-TOTP token at least prompts you for the TOTP code but this is quite cumbersome to use with a YubiKey.
Installation
awscli-plugin-yubikeytotp can be installed from PyPI:
$ pip install awscli-plugin-yubikeytotp
It's also possible to install it just for your user in case you don't have permission to install packages system-wide:
$ pip install --user awscli-plugin-yubikeytotp
Configure AWS CLI
To enable the plugin, add this to your ~/.aws/config:
[plugins]
yubikeytotp = awscli_plugin_yubikeytotp
Also make sure to have your MFA ARN configured for your profile:
[profile myprofile]
role_arn = arn:aws:iam::...
mfa_serial = arn:aws:iam::...
source_profile = default
Usage
Just use the aws command with a custom role and the plugin will do the rest:
$ aws s3 ls --profile myprofile
Generating OATH code on YubiKey. You may have to touch your YubiKey to proceed...
Successfully created OATH code.
2013-07-11 17:08:50 mybucket
2013-07-24 14:55:44 mybucket2
Acknowledgements
- Thanks to @woowa-hsw0 for this inspiration for this plugin
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file awscli-plugin-yubikeytotp-0.1.1.dev1.tar.gz.
File metadata
- Download URL: awscli-plugin-yubikeytotp-0.1.1.dev1.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.0 CPython/3.7.6 Linux/5.4.0-2-amd64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
426f979635c0162ef22cfc3abfd9655a469120f3f8f94ce1ebb48a5f7e1063b9
|
|
| MD5 |
00d284259c2f23fb116174d4258919df
|
|
| BLAKE2b-256 |
50a8a3a97f741c57171f96082683fa89938af40bd7a494ec342352427a984277
|
File details
Details for the file awscli_plugin_yubikeytotp-0.1.1.dev1-py3-none-any.whl.
File metadata
- Download URL: awscli_plugin_yubikeytotp-0.1.1.dev1-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.0 CPython/3.7.6 Linux/5.4.0-2-amd64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
49b01d245c66b2131e0749d1f870520be886d79804cded1c04bace5eae0c6bc1
|
|
| MD5 |
8e09b558fd3987907616b111037fc3c3
|
|
| BLAKE2b-256 |
c6b3423aaedffaef83282bdbf48f4fedb11ceb8e917d962a5b0910b9c914694b
|