|
How to configure AWS CLI
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.
2 | AWS Access Key ID [None]: AKIAQUGMR2BETHECODER |
3 | AWS Secret Access Key [None]: 2Iyq867AadPmoGfexqaWVbethecoder |
4 | Default region name [None]: us-east- 1 |
5 | Default output format [None]: json |
AWS CLI stores above configuration in two default configuration files ~/.aws/credentials and ~/.aws/config as shown below,
~/.aws/credentials
2 | aws_access_key_id = AKIAQUGMR2BETHECODER |
3 | aws_secret_access_key = 2Iyq867AadPmoGfexqaWVbethecoder |
~/.aws/config
|
|