tl  tr
  Home | Tutorials | Articles | Videos | Products | Tools | Search
Interviews | Open Source | Tag Cloud | Follow Us | Bookmark | Contact   
 Cloud Platforms > Amazon AWS > How to configure AWS CLI with named profiles

How to configure AWS CLI with named profiles

Author: Venkata Sudhakar

The below example shows how to configure AWS CLI with your User account Access key ID and Secret Access Key. As a first step create a User account in Identity and Access Management (IAM) and associate required Permissions. Next go to 'Security Credentials' tab and generate credentials to be used with AWS CLI.

To switch between different environments AWS allows us to use named profiles which can be configured using --profile profile_name option.

AWS CLI stores above configuration in two default configuration files ~/.aws/credentials and ~/.aws/config as shown below,



Now you can use --profile option in all AWS CLI commands.


bl  br