In order to use one of multiple profiles in your awscli config you need to set AWS_DEFAULT_PROFILE in your environment. This can easily be done with the following snippet in your ~/.zshrc . Profile names will be autocompleted. E.g.: asp development will activate the development profile from the config section above.

One thought on “Set active awscli profile

  1. This has been recently included in the upstream oh-my-zsh, you just need do enable the new aws plugin.

Leave a Reply

Your email address will not be published. Required fields are marked *