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

Automate AWS MFA Credential Renewal with OCR and PowerShell

Problem Statement Multi-Factor Authentication (MFA) is a relatively easy mechanism to improve the security of your Amazon Web Services (AWS) cloud environment. Instead of logging into the AWS Management Console using a username and password, you also have to provide a time-based one-time password (TOTP). The same concept applies when …

Continue reading

Finding an AWS EC2 AMI with the AWS PowerShell SDK

Problem Statement If you’ve ever launched an Amazon EC2 instance (aka. virtual machine), you’re probably familiar with the concept of an Amazon Machine Image (AMI). AMIs are simply virtual machine images that you can launch your EC2 instance with. Because anyone can publish a custom AMI, and because AWS has …

Continue reading

Create AWS DynamoDB Tables with PowerShell

You can use the AWS PowerShell module to create DynamoDB tables. If you need help setting up the AWS PowerShell module, start by watching this video. There’s a helper function called New-DDBSchema, which creates a .NET TableSchema object. Start by assigning the output from this command to a variable; you …

Continue reading

Finding Windows and Amazon Linux AMIs with PowerShell

Amazon Web Services (AWS) provides some built-in parameters in the AWS Systems Manager Parameter Store service, which expose pointers to the latest version of Amazon Machine Images (AMI) for Windows Server and Amazon Linux. These special parameters are called “public parameters” in the Parameter Store services; for more information, check …

Continue reading

[Video] Improving Randomness in the Get-Random PowerShell Command

Although it may seem like the Get-Random command in PowerShell provides random data, it actually returns data that is more predictable than you think. If you’re looking to generate some truly “interesting” data for your project, then you’ll want a better approach. In this video, we’ll explore the limited randomness …

Continue reading

Build Docker Container for PowerShell on Raspberry Pi

If you want to run PowerShell applications on your Raspberry Pi, you can run them inside a Docker container. Keep in mind that you can’t use Docker images that were built for the Intel x86 platform, because the Raspberry Pi uses an ARM processor. You can build your own Docker …

Continue reading

Delete Old Ubiquiti EdgeRouter Firmware

The directions to upgrade firmware on the Ubiquiti EdgeRouter X suggest that you can optionally delete the old firmware, before adding the new one. I elected to skip this step, in case I needed to roll back for some reason. However, after performing the firmware upgrade, and rebooting the device, …

Continue reading