Skip to main content

AWS Profile Switcher - Manage AWS CLI profiles easily

Project description

AWSP - AWS Profile Switcher

A command-line utility for easily managing and switching between AWS CLI profiles.

Features

  • List profiles - View all configured AWS profiles (IAM and SSO)
  • Switch profiles - Interactive profile selection with fuzzy search
  • Add profiles - Create new IAM or SSO profiles interactively
  • Remove profiles - Safely remove profiles with confirmation
  • Validate credentials - Test AWS credentials using STS
  • Shell integration - Seamless profile switching in bash, zsh, and fish

Installation

Recommended (using pipx):

pipx install awsp

Or with pip:

pip install awsp

Note: pipx is recommended for CLI tools as it installs them in isolated environments.

Quick Start

# One-time setup (auto-configures shell integration)
awsp setup
source ~/.zshrc

# Add a new profile
awsp add

# Activate a profile (sets AWS_PROFILE)
awsp activate my-profile

# Deactivate current profile (unsets AWS_PROFILE)
awsp deactivate

# List all profiles
awsp list

# Show current profile
awsp current

# Validate credentials
awsp validate

Shell Integration

Add to your shell configuration for automatic profile switching:

Bash (~/.bashrc):

eval "$(awsp init)"

Zsh (~/.zshrc):

eval "$(awsp init)"

Fish (~/.config/fish/config.fish):

awsp init --shell fish | source

Commands

Command Description
awsp setup Auto-configure shell integration (run once)
awsp activate [NAME] Activate a profile (sets AWS_PROFILE)
awsp deactivate Deactivate current profile (unsets AWS_PROFILE)
awsp list List all AWS profiles
awsp add Add a new profile (IAM or SSO)
awsp remove NAME Remove a profile
awsp current Show current active profile
awsp validate [NAME] Validate profile credentials
awsp info [NAME] Show detailed profile info
awsp init Output shell integration hook
awsp Interactive profile switcher
awsp switch [NAME] Alias for activate

Requirements

  • Python 3.10+
  • AWS CLI (for credential validation and SSO login)

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

awsp-0.3.0.tar.gz (21.0 kB view details)

Uploaded Source

Built Distribution

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

awsp-0.3.0-py3-none-any.whl (16.2 kB view details)

Uploaded Python 3

File details

Details for the file awsp-0.3.0.tar.gz.

File metadata

  • Download URL: awsp-0.3.0.tar.gz
  • Upload date:
  • Size: 21.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for awsp-0.3.0.tar.gz
Algorithm Hash digest
SHA256 2090615e7ecfc57f714b74b1f5ee50549d7000f33ebeae671c92ddd299d01f19
MD5 dd2d7f8bf9c7e62dd4829fc473c8b027
BLAKE2b-256 307a0c7da22d703a66553a115eed0cfd4632de551c0f58781b60a83764db5d42

See more details on using hashes here.

File details

Details for the file awsp-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: awsp-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 16.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for awsp-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2e7726a33d575901c8ac0a1a9367e4a76c8dc704a1e564990339a70c22e63740
MD5 43933586ac727006c66e7281717182d9
BLAKE2b-256 ca283642217bd63812ffb337f0cd80e6a5afed9bfec2b974acf809b659834184

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