Small tip: Multi aws-cli environment

Page content

Motivation

If you use multi AWS accounts in your work environment, I hightly recommend to configure your “aws-cli profile” so that you can easily change your aws-cli account.

The only thing you need to do when you want to change your aws-cli environment is the option --profile. Very simple.

How to configure

https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html

Check under ~/.aws/. You can configure multi profile.