No project description provided
Project description
AWS CLI MFA with pass-otp made easy
This plugin enables aws-cli to directly talk to pass to acquire an OATH-TOTP code using the pass-otp extension.
Installation
awscli-plugin-passtotp
can be installed from PyPI:
$ pip install awscli-plugin-passtotp
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-passtotp
Configure AWS CLI
To enable the plugin, add this to your ~/.aws/config
:
[plugins]
# If using aws-cli v2 you must specify the path to where the package was installed.
# Use `pip show awscli-plugin-passtotp | grep Location:` to find the right location.
cli_legacy_plugin_path = /foo/bar/lib/python3.9/site-packages/
passtotp = awscli_plugin_passtotp
Also make sure to specify a path to a file in your password-store in the profiles managed by pass:
[profile myprofile]
role_arn = arn:aws:iam::...
mfa_serial = arn:aws:iam::...
mfa_path = foo/aws/bar
...
Usage
Just use the aws
command with a custom role and the plugin will do the rest:
$ aws s3 ls --profile myprofile
2013-07-11 17:08:50 mybucket
2013-07-24 14:55:44 mybucket2
Acknowledgements
- Thanks to @tommie-lie for awscli-plugin-yubikeytotp
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
Close
Hashes for awscli_plugin_passtotp-1.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 185465b747e1cf7978dc5861dfc3958f6b36b7703715cc8fff9ad7cbab1cf9d1 |
|
MD5 | e4637c11c8c13433f7e643819222611b |
|
BLAKE2b-256 | 20f0238da82ed66c5d7355bced99f48ebc216aa0a7f61ce6d806980e3fb26fd4 |
Close
Hashes for awscli_plugin_passtotp-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a68f00543d50402b94dc9503d1826d49090320e35253a849c823011232afddde |
|
MD5 | 8c110b82a876c118ad3560cfbb5feffb |
|
BLAKE2b-256 | c809ed7ed0f551dbd9bc3748a452973d51d683517399368000b645c7480c1073 |