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.
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 the 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
Close
Hashes for awscli-plugin-passtotp-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a512c2e16acea148bc9aa01812ca5d620c29cb0103aa6381d067c91219b30520 |
|
MD5 | 8c353a94aba06d0c69eade4f7906afdd |
|
BLAKE2b-256 | 0d38be6d49e515c49d76f1e1625ed8779052c31581f02e1dc87052b4737884b6 |
Close
Hashes for awscli_plugin_passtotp-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93d934f6b2ba58b2c1a523cfb11513e661024d0d497ff8b4e2458463aea0d8a9 |
|
MD5 | f466ff0d1cc753ed4b1d2308d96f5f0a |
|
BLAKE2b-256 | 68c3e4c5784f00a0893d98d2e1fb9d15d9ef80b810518689fe8625b4c5bca05f |