Skip to main content

A CLI tool to manage AWS SSO configuration using boto3 and Typer.

Project description

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 .env file
  • Automatically update your AWS config file with SSO settings
  • Optionally run SSO login automatically
  • Show your current AWS config for a given profile

Requirements

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 .env file (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 login for the profile (if enabled)
  • Retrieves credentials and saves them to environment variables and .env

License

MIT

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_config-0.1.1.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

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

aws_sso_config-0.1.1-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file aws_sso_config-0.1.1.tar.gz.

File metadata

  • Download URL: aws_sso_config-0.1.1.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.4

File hashes

Hashes for aws_sso_config-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d8307345d2d87e1e7ce224ffb73672124f67e461468eeb79c9086eeababa75d0
MD5 d8187e3798371c9a51333b0f539b42db
BLAKE2b-256 b25faa05ac8e5f6561cfbd6889b3cb7bb5c70583b6f52fca44a16c39e4c00b34

See more details on using hashes here.

File details

Details for the file aws_sso_config-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for aws_sso_config-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b6a46e2eec50fe530836962f2964d28f70b2c4b93d8cfe00b54c8f4fe11bb60d
MD5 d7fd3a6c8f3a206c2286c9251360512c
BLAKE2b-256 4e9a910fdb20045f95cdb2e1a938b212510fd9898789ff9033f4af27ac160d86

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