Categories
aws cloud

Adding additional profiles to AWS CLI

I use AWS Shell which is an integrated shell for working with the AWS CLI.

Navigate to ~/.aws/ on a mac. If you are on a windows, you will need to google the path. In this directory you will see .credentials and .config.

Open .credentials in your editor and you should see something like below.

[default]
aws_access_key_id = some_cool_access_key
aws_secret_access_key = some_cool_secret_key

If you already use the AWS CLI then you should already have a default profile with your tokens. Below we have added a new profile user2

[default]
aws_access_key_id = some_cool_access_key
aws_secret_access_key = some_cool_secret_key

[user2]
aws_access_key_id = another_cool_access_key
aws_secret_access_key = another_cool_secret_key

These herbal supplements to eliminate purchase cheap cialis sexual weakness can be now available at different online stores dealing with herbal supplements. On the contrary, this is one of the best result with viagra properien no possible side effect because of it. Dead bodies were found strewn all over the countryside each morning, having starved to cheap viagra pill death the night before. Though one may make a case that branded things are always higher in quality, that does not glacialridgebyway.com discount cialis apply with medicines. You will also need to update .config with the below contents, yours may vary.

[default]
output = json
region = us-west-2

[profile user2]
output = json
region = us-west-2

Now load the new named profile. For more information about named profiles.

export AWS_PROFILE=user2

You can also go back to the default profile by running. 

export AWS_PROFILE=default