#packer - April 2020

packerArchived
9 messages

Discuss Packer for building AMIs and Docker Images
Archive: https://archive.sweetops.com/packer/

ikar
ikarover 6 years ago
Hi there!
haven't done my research yet, but quite curious about HCL & packer - is it possible to "import modules"? I'll have about 5 AMIs to pack and all JSONs look the same except for 1 parameter.
Anyone have a solution? 🙂
Abel Luck
Abel Luckover 6 years ago
I usually use a Makefile with an environment variable to build AMIs dynamically with packer
Abel Luck
Abel Luckover 6 years ago
make your 1 param an env var in the packer json, and then write a Makefile that sets the var and calls packer once for each value
ikar
ikarover 6 years ago
oh, good idea! you use HCL or JSON for that?
Abel Luck
Abel Luckover 6 years ago
i've only used JSON with packer
Abel Luck
Abel Luckover 6 years ago
haven't had time to try out HCL with packer yet
ikar
ikarover 6 years ago
cool 😎 thanks!
RB
RBover 6 years ago
anyone know how to retrieve the source ami date ?