Tool for using AWS CLI with LastPass SAML
Project description
aws-lp: AWS LastPass 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
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
Built Distribution
Hashes for lastpass_aws_login-0.1.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a3c34c32d8b52b358ef736cb3594237045fee236d3859b2f0f001f3cd2ce3c7 |
|
MD5 | 52e84f4497b80bd63dcca65067547fc4 |
|
BLAKE2b-256 | 7fe5575d64993d85409979aaf01c2b21809a5d444ccdfe6949cdbf55c38c0fa7 |