noahlh / aws-automated-backup-powershell

A set of Windows PowerShell scripts to enable automated backups (via snapshots) on AWS EC2 Windows instances
Other
39 stars 27 forks source link

Minor changes #12

Open buddypepper opened 9 years ago

buddypepper commented 9 years ago

I made a few minor changes to this, but I've got no idea how to submit them...namely:

I'd be happy to share the code, but I'll need a little guidance.

buddypepper commented 8 years ago

I'm just going to leave my suggested changes here, in case it's every of use to anyone....

AWSConfig.ps1:

General

$snapshot_name="Automated Daily Backup" $AWS_Region="us-east-1"

EC2 Regions

$serviceURL="https://ec2." + $AWS_Region + ".amazonaws.com"

SES Regions (do not uncomment if using custom email server)

$sesURL="https://email." + $AWS_Region +".amazonaws.com"

AWSUtilities.ps1 (add this before the line "return $createSnapshotResult.Snapshot.SnapshotId" in "CreateSnapshotForInstance": new-ec2tag -AccessKey $accessKeyID -SecretKey $secretAccessKey -Region $AWS_Region -Resources $createSnapshotResult.Snapshot.SnapshotId -Tags @{ Key="Name"; Value = $snapshot_name }