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
pip install awsp
Quick Start
# List all profiles
awsp list
# Interactive profile switcher
awsp
# Switch to a specific profile
awsp switch my-profile
# Add a new profile
awsp add
# 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 |
Interactive profile switcher |
awsp list |
List all AWS profiles |
awsp switch [NAME] |
Switch to a profile |
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 |
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.1.0.tar.gz
(20.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
awsp-0.1.0-py3-none-any.whl
(15.3 kB
view details)
File details
Details for the file awsp-0.1.0.tar.gz.
File metadata
- Download URL: awsp-0.1.0.tar.gz
- Upload date:
- Size: 20.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
47604a3ded9ab8ac946a66e167ac77f755cb881737c0b847840bd2bb4030686d
|
|
| MD5 |
8d36d768dc7f1951dc46d61760818af9
|
|
| BLAKE2b-256 |
299916f88c8709fc38bfe46eb59fcd8a027270a468d8226e28b87aef0c5aabd9
|
File details
Details for the file awsp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: awsp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 15.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
853252b4a2bdbe183e9fa568d2ef08472ccf46e9faeabd1b52f9aae655d7963f
|
|
| MD5 |
7962a29eab11591e5fbf67e44fdd3dfa
|
|
| BLAKE2b-256 |
2a965e9858a82cb0783b1d8047f4cc618314de56ce2613edac3afa9208435eaf
|