· 8 years ago · Dec 31, 2017, 11:50 AM
1# 1. Run "aws configure" and enter your credentials.
2# This will ensure the values are written to the correct file location.
3
4
5$ aws configure
6AWS Access Key ID [****************ABCD]: foo
7AWS Secret Access Key [****************ABCD]: bar
8Default region name [us-west-2]: us-west-2
9Default output format [None]:
10
11# 2. Then verify the configuration values, and make sure
12# they are shown in the config file.
13
14$ aws configure list
15 Name Value Type Location
16 ---- ----- ---- --------
17 profile <not set> None None
18access_key ****************ABCD config-file
19secret_key ****************ABCD config-file
20 region us-west-2 config-file ~/.aws/config