Skip to content

awsctx

Why

When you use AWS Identity Centre, you have multiple roles for multiple accounts, so your list of profiles gets hard to remember.

This follows a similar design to kubectx and kubens etc

How

Add the below to your ~/.zshrc

alias awsctx="export AWS_PROFILE=\$(aws configure list-profiles | fzf --prompt \"Pick your AWS Profile:\")"

fzf

Ensure you have fzf installed

brew install fzf

You can then use to select your profile by running

awsctx

Want to make this site better? Open a PR, help fund hosting costs or message me on Matrix