-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path01 - Getting Started.ps1
43 lines (30 loc) · 1005 Bytes
/
01 - Getting Started.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Finding the PowerShell Modules
Find-Module -Name AWS.Tools*
# Install Common Tools Module
Install-Module -Name AWS.Tools.Common -Verbose -Force
# Whats in Common Package
Get-Command -Module AWS.Tools.Common
# Installer Module
Install-Module -Name AWS.Tools.Installer -Verbose -Force
# Whats in Installer Package
Get-Command -Module AWS.Tools.Installer
# Installing multiple modules
Install-AWSToolsModule -Verbose -Name Ec2, S3, Lambda, SimpleSystemsManagement, Cloudwatch, CloudWatchLogs -Force
# Double Check our modules
Get-Module -ListAvailable AWS.Tools*
# Always Update your modules
Update-AWSToolsModule -Verbose -Force
# Setting up your session
Set-AWSCredential -AccessKey "" -SecretKey "" -Verbose
# Presisting Credentials
$awsCreds = @{
AccessKey = ''
SecretKey = ''
StoreAs = 'default'
Verbose = $true
}
Set-AWSCredential @awsCreds
# Working With the Default Region
Get-AWSRegion
Set-DefaultAWSRegion -Region us-west-2 -Verbose
Get-DefaultAWSRegion -Verbose