Add the contents of aws-profile.sh to your bash profile.
Use like the following:
Create a user in AWS IAM with CLI capabilities Get the users' access key and secret key
Add the profile to your CLI
aws-add-profile {the account name} {your access key} {your secret key}
# E.g.
aws-add-profile myaccount 123AKSDJLHSLKD KJHK-12321-12OIE-OI12E
Activate the profile:
aws-profile
> 1) default
> 2) myaccount
> 3) Quit
> Select a profile: 2|
> you chose myaccount
Your profile is now active, and will be used for aws-sdk cli commands.