Switch AWS Profiles with Ease — Now with Tab Autocompletion!
If you’re constantly jumping between AWS profiles, this guide shows you how to create a lightweight awsctx CLI tool with tab autocompletion — inspired by the simplicity of kubectx.
It covers:
Shell function to switch profiles interactively or by name
Tab completion using compgen and bashcompinit in Zsh
Clean integration with your .zshrc
Perfect for anyone working with multi-account AWS setups and wants a faster, cleaner workflow. Feedback welcome!
m99coder•2h ago
If you’re constantly jumping between AWS profiles, this guide shows you how to create a lightweight awsctx CLI tool with tab autocompletion — inspired by the simplicity of kubectx.
It covers: Shell function to switch profiles interactively or by name Tab completion using compgen and bashcompinit in Zsh Clean integration with your .zshrc
Perfect for anyone working with multi-account AWS setups and wants a faster, cleaner workflow. Feedback welcome!