Easily switch between AWS profiles.
This CLI tool provides a quick way to switch between different AWS profiles in your terminal
First you need to have Deno installed.
After that to install the cli tool:
deno install --unstable --allow-env=HOME,AWS_PROFILE,TERM_PROGRAM --allow-read="$HOME/.aws/config" --allow-write="$HOME/.aws-switch.sh" --name=aws-switch https://deno.land/x/aws_switcher/cli.ts
Add an alias to your bash:
alias awsp='aws-switch && source ~/.aws-switch.sh'
Thats it!
To switch AWS profile just run
awsp
and then select the profile you want from the select menu.
MIT