Skip to main content

A program to simplify logging in and setting credentials using AWS SSO.

Project description

aws-sso-cli

A program to simplify logging in and setting credentials using AWS SSO.

Installation

This can be installed via pip:

pip install aws-sso-cli

You can also find wheels from the releases page on gitlab.

Usage

Running aws-sso-cli with no arguments will check if you are logged in, and log in with aws sso login if you are not. It will additionally create or update your credentials file (in either $AWS_SHARED_CREDENTIALS_FILE if defined or defaulting to $HOME/.aws/credentials) after logging in and will attempt to log you into AWS ECR if docker is running.

You can use a different profile than default or the normal AWS_PROFILE environment variable by using the --profile flag.

If you want to log in even if you are already logged in, pass the --force flag.

If you want to log into AWS ECR only, pass the --docker-force flag. This is useful if you start the docker daemon after already running aws-sso-cli.

Requirements

Actually signing in to AWS requires the aws-cli program. This also requires Python to be installed and the boto3 library.

Development

Run make test to generate a virtual environment and run tests.

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

aws-sso-cli-0.4.2.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

aws_sso_cli-0.4.2-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file aws-sso-cli-0.4.2.tar.gz.

File metadata

  • Download URL: aws-sso-cli-0.4.2.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for aws-sso-cli-0.4.2.tar.gz
Algorithm Hash digest
SHA256 9574160fa6e08356e9b42e13c4a9654b9131c60972fc1fc223693d5ef1c7c84a
MD5 82c5ff2ecd5f6b2fff295772fd602004
BLAKE2b-256 244b995685a08be05bbeca7fcbe6277e6392439b9d28147205593070ea64562c

See more details on using hashes here.

File details

Details for the file aws_sso_cli-0.4.2-py3-none-any.whl.

File metadata

  • Download URL: aws_sso_cli-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for aws_sso_cli-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c3fb47b302f4606b6a0d27aba53b831a0127e319a5c9ed53dcdae6c477fa0100
MD5 397a01fb137e7857244cad03820dd7dc
BLAKE2b-256 6f43e4eeaeeba9d77cb91da53fcb5f166ce574803df0c27cd16a366721001fc3

See more details on using hashes here.

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