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.0.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.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aws_sso_config-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 b1a4d3bff1f2deaf063fb876d45dd59df706e94a1fa7f27fd823bb447ac63541
MD5 6b8895c36d6c7ed08ec7353b5136d1f7
BLAKE2b-256 20bcdf95392cc0b20126e8f53845681d3d91b2a62b91a595072c9e11bf26008c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aws_sso_config-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 24103229838fd9694b446944777e3ef2a1beee165504b1a3961f447274ea6238
MD5 e5cb631baf42cd4eb3e850e9d977f80e
BLAKE2b-256 06a71185a71e7e112243fe8d37e5f40ad64622318e9077e2cb2e7ba0f77045f4

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