For security reasons, your source AMI filter must declare an owner.
Hashicorp Packer AWS AMI build must include a VM owner
If you are using a filter to retrieve an AMI in packer, you have to supply the owners parameter.
Packer by HashiCorp
Search Packer documentation Type: amazon-ami The Amazon AMI data source will filter and fetch an Amazon AMI, and output…
If you are wondering why owners matter…you don’t want a nasty lookalike VM to get into your environment.
Make "owners" field of source_ami_filter required: RFC · Issue #6584 · hashicorp/packer
HashiCorp's security team pointed out an interesting potential exploit where if you request an amazon AMI via a…
In my case I was using source_ami instead but I failed to add it to my Packer variables when I tried to run my template. Apparently Packer defaults to the filter option.
If you liked this story please clap and follow:
Medium: Teri Radichel or Email List: Teri Radichel
Twitter: @teriradichel or @2ndSightLab
Requests services via LinkedIn: Teri Radichel or IANS Research
© 2nd Sight Lab 2022
About this blog:
Want to learn more about Cybersecurity and Cloud Security? Check out: Cybersecurity for Executives in the Age of Cloud on Amazon
Need Cloud Security Training? 2nd Sight Lab Cloud Security Training
Cybersecurity & Cloud Security Resources by Teri Radichel: Cybersecurity and Cloud security classes, articles, white papers, presentations, and podcasts