Finding Packer-generated AMIs automatically after builds
The basic technique is to have Packer add a tag with a unique value during the build, and use AWS' built-in filtering capabilities to find that specific AMI after the build finishes.
- template.json - Shows the settings that need to be added to your template
- build.sh - Shows how to use the template to do a build and retrieve the AMI information
Thanks for the nice script. I found out that you need to specify the
aws cli
output format because I've as default output format table and the command need json