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

Amazon EC2 Instances Will Support Per-Second Billing

In an exciting, new announcement on their blog, Amazon Web Services (AWS) has just announced that EC2 Instances running Linux, and “are launched in On-Demand, Reserved, and Spot form,” will support per-second billing. This includes AWS Batch and Elastic Map Reduce (EMR). Since 2006, when EC2 was launched, EC2 Instances were …

Continue reading