AWS SSO Config
A command-line tool to manage AWS SSO credentials and configuration using Typer and Boto3.
Features
- Retrieve AWS SSO credentials and save them to environment variables and a
.envfile - Automatically update your AWS config file with SSO settings
- Optionally run SSO login automatically
- Show your current AWS config for a given profile
Requirements
- Python 3.12+
- boto3
- typer
- python-dotenv
Installation
Install the package in editable/development mode (from the project root):
pip install .
Usage
After installation, use the CLI command:
aws-connect load-config [OPTIONS]
Example
aws-connect load-config --profile myprofile --sso-url https://example.awsapps.com/start --account-id 123456789012 --role-name MyRole --region us-west-2 --sso-region us-east-1 --env-file .env
Options
--profile,-p: AWS SSO profile name (default:genai)--sso-url: SSO start URL--account-id: AWS account ID--role-name: SSO role name--region,-r: AWS region--sso-region: SSO region--session-name: SSO session name (defaults to profile name)--env-file: Path to.envfile (default:.env)--auto-login/--no-auto-login: Automatically run SSO login (default: true)--update-config/--no-update-config: Update AWS config file (default: true)
Show Config
aws-connect show-config --profile myprofile
How it works
- Updates your AWS config file with SSO settings
- Runs
aws sso loginfor the profile (if enabled) - Retrieves credentials and saves them to environment variables and
.env
License
MIT
Metadata
Release files for aws-sso-config 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| aws_sso_config-0.1.1.tar.gz | 3.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aws_sso_config-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.5 kB
Release files / aws_sso_config-0.1.1.tar.gz
| Download URL | aws_sso_config-0.1.1.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d8307345d2d87e1e7ce224ffb73672124f67e461468eeb79c9086eeababa75d0
|
|
BLAKE2b-256 checksum How to use checksums |
b25faa05ac8e5f6561cfbd6889b3cb7bb5c70583b6f52fca44a16c39e4c00b34
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.4
|
Release files / aws_sso_config-0.1.1-py3-none-any.whl
| Download URL | aws_sso_config-0.1.1-py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b6a46e2eec50fe530836962f2964d28f70b2c4b93d8cfe00b54c8f4fe11bb60d
|
|
BLAKE2b-256 checksum How to use checksums |
4e9a910fdb20045f95cdb2e1a938b212510fd9898789ff9033f4af27ac160d86
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.4
|
Security for aws-sso-config 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.