Have you ever run a command on the wrong account?

meme

It happened once: I deployed a production stack into the sandbox account and had no idea why it wasn’t working. So I built a tool to handle AWS profile switching, similar to kubectx.

It’s a simple shell function that you add to your .bashrc or .zshrc, and it loads whenever you start a new shell session. It’s called awsctx (yes, very creative).

awsctx

How do I install it?

Check the well-documented README.md. And don’t forget to star it.

https://github.com/felipeamarante/awsctx