My Profile Photo

${Graham Beer} = 'blog'


Infrastructure Engineer, authored chapter in the PowerShell Conference Book, co-founder of the PowerShell user group in the South Coast and Top 50 Blogger 2018


PowerShell Conf Book Planet PowerShell Top 50 PowerShell

AWS AMI discovery with PowerShell

Using PowerShell is one way of finding available Amazon Machine Images (AMIs). The two main cmdlets Amazon’s AWSPowerShell.NetCore module provides are Get-EC2Image and Get-EC2ImageByName. Get-EC2Image uses the powerful type Amazon.EC2.Model.Filter to allow detailed filtering. By looking at the Amazon Web Services (AWS) documentation, you can see the many filtering options available. In this article, we will look into some of these and will also show a function I’ve created to simplify the AMI search.

AMIs are virtual appliances used to create instances in AWS. The best way to describe an AMI is as a template used to create a virtual machine in Amazon’s Elastic Compute Cloud (EC2). A single AMI can serve to launch one or thousands of instances. There are many choices when it comes to finding an AMI, ranging from vendors, the public, and Amazon themselves to name a few.

4sysops article continues here…