Skip to main content

Tool for using AWS CLI with LastPass SAML

Project description

lastpass-aws-login: AWS LastPass SAML CLI

PyPI version Codeship Status for NitorCreations/lastpass-aws-login

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

lastpass-aws-login-0.1.7.tar.gz (9.7 kB view hashes)

Uploaded Source

Built Distribution

lastpass_aws_login-0.1.7-py2.py3-none-any.whl (22.5 kB view hashes)

Uploaded Python 2 Python 3

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