/aws-powershell

A repository of some AWS PowerShell scripts I wrote and use which you might find useful.

Primary LanguagePowerShell

aws-powershell

Join the chat at https://gitter.im/reecestart/aws-powershell A repository of some AWS PowerShell scripts I wrote and use which you might find useful.

Requirements

Please note you will need to set your execution policy to RemoteSigned and have the latest AWS PowerShell Tools installed.

Copy-RedshiftClusterBetweenRegions-Form.ps1

Requirements: Ensure you have the appropriate IAM permissions to make the Redshift API calls (eg. redshift:DescribeClusters)

Copy-RedshiftClusterBetweenRegions-Form.ps1

alt tag

Steps

Step Description Comments
1 Select Region of source Redshift Cluster
2 Select source Redshift Cluster
3 Enter a unique Snapshot Identifier
4 Select destination Region for copied Redshift Cluster
5 Select the unique Snapshot Copy Grant that is created based on your username and date & time Snapshot copy between regions will take time
6 Select a VPC Security Group
7 Enter a unique Redsift Cluster Identifier

NOTE: Update Lines 7, 8, and 9 for MailMe Function

####### Please set these values ######
$Global:smtpserver = "smtp.company.org"
$Global:from ="no-reply@redshiftclustermigrator.company.com"
$Global:CompanySuffix = "@company.com"
####### Please set these values ######

Get-CloudWatchLogs.ps1

Requirements: Ensure you have CloudWatch Logs IAM permissions (eg. Get-CWLLogGroups)