· 6 years ago · Jul 22, 2019, 01:32 PM
1root@debby:/usr/local/bin# aws configure list --profile dev
2 Name Value Type Location
3 ---- ----- ---- --------
4 profile dev manual --profile
5access_key ****************TL3B shared-credentials-file
6secret_key ****************JdPg shared-credentials-file
7 region us-west-2 config-file ~/.aws/config
8root@debby:/usr/local/bin# aws configure list --profile test
9 Name Value Type Location
10 ---- ----- ---- --------
11 profile test manual --profile
12access_key ****************RGOA shared-credentials-file
13secret_key ****************RxzS shared-credentials-file
14 region us-west-2 config-file ~/.aws/config
15root@debby:/usr/local/bin# aws configure list --profile devops
16 Name Value Type Location
17 ---- ----- ---- --------
18 profile devops manual --profile
19access_key ****************NXGR shared-credentials-file
20secret_key ****************4z17 shared-credentials-file
21 region us-west-2 config-file ~/.aws/config
22root@debby:/usr/local/bin# cat /root/.aws/config
23[default]
24region = us-west-2
25output = json
26[profile dev]
27output = yaml
28region = us-west-2
29[profile test]
30output = yaml
31region = us-west-2
32[profile devops]
33output = yaml
34region = us-west-2
35root@debby:/usr/local/bin# aws eks --region us-west-2 update-kubeconfig --name dev
36
37An error occurred (ResourceNotFoundException) when calling the DescribeCluster operation: No cluster found for name: dev.
38root@debby:/usr/local/bin#