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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 2Python 3

File details

Details for the file lastpass-aws-login-0.1.7.tar.gz.

File metadata

  • Download URL: lastpass-aws-login-0.1.7.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for lastpass-aws-login-0.1.7.tar.gz
Algorithm Hash digest
SHA256 85b83926f3897b4960750268c3a30b106b557c43bed5b07b0ee82d51c112fbc8
MD5 c5b4a38537e4541e1409a50d45b8fff5
BLAKE2b-256 7344377a2bd778fb0fd1c40b7c24aa8b08505e5e7b460282dafdd0925260e0d0

See more details on using hashes here.

File details

Details for the file lastpass_aws_login-0.1.7-py2.py3-none-any.whl.

File metadata

  • Download URL: lastpass_aws_login-0.1.7-py2.py3-none-any.whl
  • Upload date:
  • Size: 22.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using 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

File hashes

Hashes for lastpass_aws_login-0.1.7-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 43b9838e534c891f1bf2e3efc3ac34704fa1e665a3f9f68fde7bb0d2dfc889a4
MD5 1f6b68c16e5cb9eb375f4b35a4d12219
BLAKE2b-256 1b8552066b9e1d722f4c932ee8a9ab4f9570553a6c13d07d5dad3c50cb0baf3f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page