AWS CLI Profile
The settings and stuff inside ~/.aws
folder.
You can go into it and
cd ~/.aws
cat config
cat credentials
To config for a different profile you can do
aws configure --profile my_other_profile
This will change the credential. And if you check one of those files again it will have a new bracket
$ cat config
[default]
region = ap-southeast-2
[profile other-aws]
region = ap-south-east-2
If you want to execute a function using a specific profile you have to
aws s3 ls --profile my-other-profile