November 22, 2015
Obtain AMI Id from name to be used in CFN
In most cases we create custom AMI’s for various reasons like OS hardening, installing and configuring additional software, etc. If you use single AWS account to create the AMI’s and share it with other AWS accounts and use that as part of CloudFormation template, it is required to pass the new AMI Id every time.
AWS Lambda comes handy for easy and elegant solution to get the latest AMI Id based on the AMI name and owner.
Read more