aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorChristian Segundo2022-06-10 20:28:27 +0200
committerGitHub2022-06-10 20:28:27 +0200
commitd0afccdfc9d6370cab07698987e4146354f48a2c (patch)
tree1fa63f8e6dba44b2b4a4428128c7bcd5f460ee13 /README.md
parentf4a021a9d7412a80bb72df9a5e1d13285bc84b80 (diff)
downloadawscli-plugin-passtotp-d0afccdfc9d6370cab07698987e4146354f48a2c.tar.gz
Update README.md
Diffstat (limited to 'README.md')
-rw-r--r--README.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/README.md b/README.md
index df67a30..0033a01 100644
--- a/README.md
+++ b/README.md
@@ -6,20 +6,20 @@ to acquire an OATH-TOTP code using the [pass-otp](https://github.com/tadfisher/p
## Installation
`awscli-plugin-passtotp` can be installed from PyPI:
-```
+```sh
$ 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:
-```
+```sh
$ pip install --user awscli-plugin-passtotp
```
### Configure AWS CLI
To enable the plugin, add this to your `~/.aws/config`:
-```
+```ini
[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/
@@ -28,7 +28,7 @@ passtotp = awscli_plugin_passtotp
```
Also make sure to specify a path to a file in your password-store in your profiles:
-```
+```ini
[profile myprofile]
role_arn = arn:aws:iam::...
mfa_serial = arn:aws:iam::...
@@ -40,7 +40,7 @@ mfa_path = foo/aws/bar
## Usage
Just use the `aws` command with a custom role and the plugin will do the rest:
-```
+```sh
$ aws s3 ls --profile myprofile
2013-07-11 17:08:50 mybucket
2013-07-24 14:55:44 mybucket2