Using different profiles with aws cli

With the AWS CLI you can configure a number of named profiles, with credentials for different accounts. These are stored in ~/.aws/configuration

To show the currently in use profile, use

aws configure list

To view all configured profiles:

aws configure list-profiles

The default profile is used when you don’t specify a named profile. The others are used when you pass the –profile profilename parameter

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.