This could be achieved by profile feature of AWS cli.
AWS credentials are located in ~/.aws/credentials:
voba@vobapc:~/projects/text-editor/support/clkc$ cat **~/.aws/credentials**
[default]
aws_access_key_id = AKIAXXXXXXXXXX
aws_secret_access_key = WpMx+E0eI4ysYYYYYYYYYYYYYYYY
By default [default] profile is created.
To add a new profile type next command:
**aws configure --profile clkc**
The command above will create a new **clkc** profile:
voba@vobapc:~/projects/text-editor/support/clkc$ cat ~/.aws/credentials
[default]
aws_access_key_id = AKIAVQI7ZZZZZZZZZ
aws_secret_access_key = WpMx+E0eI4ys90/YYYYYYYYYYYY
[clkc]
aws_access_key_id = AKIASMYJROOOOOOOO
aws_secret_access_key = Gd4lGIquMqnKVBBBBBBBBBB
Now using aws eks command you can connect to a specific cluster using the profile option:
**aws eks --region ca-central-1 update-kubeconfig --name clkc-thingsboard --profile clkc**