This script was created by my brother Scott Prudence and I, this snapshot’s 1 specific volume then once the snapshot is completed the script then removes the oldest snapshot. This is a way of implementing a weekly snapshot of a single volume within AWS.   NOTE – Change the VOLUMEID variable from vol-xxxxxx to your volume ID […]

Read More

Here is how I setup my AWS CLI on my Windows 7 machine. Download the CLI .MSI file AWS direct: https://aws.amazon.com/cli/ Run the MSI installation file (I install my CLI at C:\AWS for laziness when using the CLI) Open Command Prompt/Powershell Browse to your installed location and run aws –version PS K:\> cd C:\AWSCLi PS C:\AWSCLi> […]

Read More

This script was reuqired to tag a list of instance ID’s to change/add Service Owner tag. Please remember to confirgure powershell for AWS and also change the $tag.value variable   ######################################## ## Bulk Tag for Multiple Instances ## ## Ben Prudence – 07/09/2016 ## ######################################## ## Import-Module AWSPowershell ## Tag Details $tag = New-Object Amazon.EC2.Model.Tag […]

Read More

NOTE – For this script to work your instances must have a unique name tag. I use this tag for machine host-names. The requirement for this script was to snapshot all volumes of a machine before deploying Windows updates to ensure a safe and quick rollback option. This script is to snapshot and tag all attached […]

Read More

NOTE – For this script to work your instances must have a unique name tag. I use this tag for machine host-names. This script is to identify all attached volume ID’s from a single instance Name Tag within AWS Powershell. The sections below describe the action of script sections Import AWS Powershell module (needs to […]

Read More

To use AWS powershell you will need to download and install the module form AWS. The link and install instructions are below. https://aws.amazon.com/powershell/ Once the module is installed you should be able to run Powershell as administrator and configure your powershell as below: Set AWS Credential Profile Set-AWSCredentials -AccessKey {AKIAIOSFODNN7EXAMPLE} -SecretKey {wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY} -StoreAs {ProfileName} Initialize-AWSDefaults […]

Read More