In order to interact with AWS we usually have to tell it who we are (authentication credentials) and what region we are looking to work in.
We could certainly provide this info for each command we issue, but we would have to type that info out everytime and potentially expose your credentials. Lets simplify and secure by storing this information in a profile.
The AWS Tools for Windows PowerShell can use either of two credentials stores.
The AWS SDK store, which encrypts your credentials and stores them in your home folder.
The credentials file, which is also located in your home folder, but stores credentials as plain text. By default, the credentials file is stored here: C:\Users\username\.aws\credentials.
We will store them in the AWS SDK store so they are encrypted with the following powershell command.
But we don’t want to have to specify the Profile Name and Region on every command. It takes too long. Let’s set these as defaults so thay are assumed every time we open up Powershell and issue AWS commands.