Skip to main content

No project description provided

Project description

awscli-plugin-passtotp
======================

This plugin enables aws-cli to directly talk to pass to acquire an
OATH-TOTP code using the pass-otp extension.

Dependencies
------------

* pass
* pass-otp
* python
* aws-cli

Installation
------------

Building and installing awscli-plugin-passtotp requires a working
Python 3 installation.

a) To install it from a cloned repository:

$ python3 -m pip install .

b) You can also install it directly from PyPi like this:

$ python3 -m pip install awscli-plugin-passtotp

Enabling the plugin
-------------------

A new entry to the plugins section in your config (~/.aws/config)
must be added to enable the plugin:

[plugins]
passtotp = awscli_plugin_passtotp

If using aws-cli version 2 you must specify the path to where the
package was installed. You can use the following command to find
the right location:

$ pip show awscli-plugin-passtotp | grep Location:

And then add the following to your config (~/.aws/config):

[plugins]
cli_legacy_plugin_path = /usr/local/lib/python3.10/dist-packages
passtotp = awscli_plugin_passtotp

AWS CLI configuration
---------------------

Specify a path to a file in your passord-store in the profiles where
you want to use the plugin.

[profile bar]
mfa_path = foo/aws/bar
...

You can ensure you have a working pass-otp entry by running:

$ pass otp foo/aws/bar

Where 'foo/aws/bar' is an entry added by 'pass otp', eg:

$ pass otp insert foo/aws/bar

Usage
-----

Just use the aws command with a custom role and the plugin will
obtain the TOTP token from pass:

$ aws s3 ls --profile myprofile
2013-07-11 17:08:50 mybucket
2013-07-24 14:55:44 mybucket2

Acknowledgements
----------------

This plugin was primarily based off the work of tommie-lie in
https://github.com/tommie-lie/awscli-plugin-yubikeytotp

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

awscli_plugin_passtotp-1.0.2.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

awscli_plugin_passtotp-1.0.2-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file awscli_plugin_passtotp-1.0.2.tar.gz.

File metadata

File hashes

Hashes for awscli_plugin_passtotp-1.0.2.tar.gz
Algorithm Hash digest
SHA256 2ff2af33058c961b1c2f8179be7ecd0c5f421b5ddd2f827965c1a8fce013e118
MD5 f7369073696dfc3ca251e1a396eef8fd
BLAKE2b-256 20e41f3237f6a01179f9d41733b3e3825f0fe472a1c9978ba96bb70c1acd686e

See more details on using hashes here.

File details

Details for the file awscli_plugin_passtotp-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for awscli_plugin_passtotp-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 21b6d2a858b98e6bcde4b0e2265466622861db4c989cb90e89259461d8beb947
MD5 9554aeb155bac9956032a03ec69b3428
BLAKE2b-256 da1ba762a5d035612645bb6609e5322858c8e7082fec00514365b2646b89eb51

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