Monitor AWS Auto Scaling Activities with PowerShell

Recently, I needed to monitor my auto scaling groups in AWS, to see why they weren’t scaling up properly. Although I can use the AWS management console to monitor these activity messages, it isn’t very efficient to continuously click the refresh button. Hence, I wanted to automate the process of …

Continue reading

Find the Main Route Table of a VPC with PowerShell

In Amazon Web Services (AWS) Virtual Private Cloud (VPC), each VPC has a default route table, known as the “main” route table. If you want to identify the route table that is considered the “main” route table, it can be a little challenging. Using the Get-EC2RouteTable command, you might notice …

Continue reading

Keep AWS PowerShell Module Updated on Mac OS

Are you on Mac OS and need to keep your AWS PowerShell module up-to-date? As you’ve probably noticed, there are frequently new versions of the AWS PowerShell module being released, to keep pace with new services and service features being added to Amazon Web Services (AWS) cloud. Updating PowerShell modules …

Continue reading

CloudFormation YAML: EC2 Instance with PowerShell UserData

Someone recently was asking for an AWS CloudFormation template, in YAML format as opposed to JSON, that would deploy an EC2 instance running Windows Server, and supported a PowerShell-based UserData script. In response to this, I created the YAML snippet below. Note that the Amazon Machine Image (AMI) ID is …

Continue reading

Retrieve AWS AccountID using PowerShell

As an AWS customer writing programs against AWS service APIs, using the AWS Tools for PowerShell, you’ll often need to reference your AWS AccountID. For example, some service API calls require passing in an Amazon Resource Name (ARN), which contains your AWS AccountID as one of its parts. Much of …

Continue reading