Skip to main content

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.

Release files for aws-sso-cli 0.4.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aws-sso-cli 0.4.2
File Size Uploaded
aws-sso-cli-0.4.2.tar.gz 4.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for aws-sso-cli 0.4.2
File Interpreter ABI Platform
aws_sso_cli-0.4.2-py3-none-any.whl Python 3 none any Details

Total release size: 13.2 kB

Release files / aws-sso-cli-0.4.2.tar.gz

Download URL aws-sso-cli-0.4.2.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
9574160fa6e08356e9b42e13c4a9654b9131c60972fc1fc223693d5ef1c7c84a
BLAKE2b-256 checksum
How to use checksums
244b995685a08be05bbeca7fcbe6277e6392439b9d28147205593070ea64562c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

Release files / aws_sso_cli-0.4.2-py3-none-any.whl

Download URL aws_sso_cli-0.4.2-py3-none-any.whl
Size 8.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c3fb47b302f4606b6a0d27aba53b831a0127e319a5c9ed53dcdae6c477fa0100
BLAKE2b-256 checksum
How to use checksums
6f43e4eeaeeba9d77cb91da53fcb5f166ce574803df0c27cd16a366721001fc3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

Release history Release notifications | RSS feed

This release

0.4.2 This release

2 release files

0.4.1

2 release files

0.4.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page