Helpful Commands

Credentials and Connections

Install the AWS Command Module

Install-Module -Name AWSPowerShell

Create new profile or update existing

Set-AWSCredential -AccessKey <aKey> -SecretKey <sKey> -StoreAs <profileName>

List current credential profiles in the key store

Get-AWSCredential -ListProfileDetail

Set a credential profile to be used in this session

Set-AWSCredential -ProfileName <profileName>

Get the default AWS region you have set

Get-DefaultAWSRegion

Set the region to be used in this session

Set-DefaultAWSRegion -Region us-west-2

Set the default profile for the account

Initialize-AWSDefaultConfiguration -ProfileName <profileName> -Region <region>