lastpass-aws-login: AWS LastPass SAML CLI
Tool for using AWS CLI with LastPass SAML.
LastPass code from here: https://github.com/omnibrian/aws-lp, SAML and profile management code mostly from here: https://github.com/NitorCreations/adfs-aws-login
Installation
This tool is published on pypi.org:
pip install lastpass-aws-login
Usage
You will need to look up your SAML configuration ID for the AWS role you wish to join. This is in the generated launch URL in the LastPass console, it will look something similar to https://lastpass.com/saml/launch/cfg/25. In this case, the configuration ID is 25, enter this number into the configuration
Run
The executable is called lastpass-aws-login. Log in with default profile by simply running lastpass-aws-login or specify a profile with lastpass-aws-login --profile [profile].
See lastpass-aws-login -h for more options.
If the environment variable LASTPASS_DEFAULT_PASSWORD is defined, that will be used as the password.
Configure
Configure the profiles in $HOME/.aws/config. Following is an example with all supported configuration keys (and a few aws default ones):
[profile example]
region=us-east-1
output=json
lastpass_default_username=test.user@example.com
lastpass_role_arn=arn:aws:iam::1234567890:role/DeployRole
lastpass_session_duration=8
lastpass_saml_id=25
Metadata
Release files for lastpass-aws-login 0.1.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| lastpass-aws-login-0.1.7.tar.gz | 9.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lastpass_aws_login-0.1.7-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 32.2 kB
Release files / lastpass-aws-login-0.1.7.tar.gz
| Download URL | lastpass-aws-login-0.1.7.tar.gz |
|---|---|
| Size | 9.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
85b83926f3897b4960750268c3a30b106b557c43bed5b07b0ee82d51c112fbc8
|
|
BLAKE2b-256 checksum How to use checksums |
7344377a2bd778fb0fd1c40b7c24aa8b08505e5e7b460282dafdd0925260e0d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.5
|
Release files / lastpass_aws_login-0.1.7-py2.py3-none-any.whl
| Download URL | lastpass_aws_login-0.1.7-py2.py3-none-any.whl |
|---|---|
| Size | 22.5 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
43b9838e534c891f1bf2e3efc3ac34704fa1e665a3f9f68fde7bb0d2dfc889a4
|
|
BLAKE2b-256 checksum How to use checksums |
1b8552066b9e1d722f4c932ee8a9ab4f9570553a6c13d07d5dad3c50cb0baf3f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.5
|