AWS client for Python
https://boto3.amazonaws.com/v1/documentation/api/latest/index.html

Set specific AWS profile

1
2
3
4
5
6
7
8
9
$ cat ~/.aws/credentials 
[default]
aws_access_key_id = ABCDEFGHIJKLMNOPQRST
aws_secret_access_key = 12345678904lqM+abcdefghijklmnopViX+abcde

[foobar]
aws_access_key_id = TSRQPONMLKJIHGFEDCBA
aws_secret_access_key = edcba+XiVponmlkjihgfedcba+Mql40987654321
aws_session_token = xxxxxxxxxxxx

Let say I want to use foobar profile as default

1
echo "AWS_PROFILE=foobar" >> ~/.bashrc
References: