Today I learned about aws named profiles.

They are defined as follows:

[user1]
aws_access_key_id=AKIAI44QH8DHBEXAMPLE
aws_secret_access_key=je7MtGbClwBF/2Zp9Utk/h3yCo8nvbEXAMPLEKEY

and used as follows

aws ec2 describe-instances --profile user1

More here