Discuss Packer for building AMIs and Docker Images
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?
I usually use a Makefile with an environment variable to build AMIs dynamically with packer
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
oh, good idea! you use HCL or JSON for that?
i’ve only used JSON with packer
haven’t had time to try out HCL with packer yet
anyone know how to retrieve the source ami date ?
ec2 describe-images API might be useful
ya i mean i could use the awscli or boto to do it. i was hoping there was something within packer
Not that I’m aware of
after sniffing around the code, there doesnt seem to be a way so i wrote up a ticket with packer https://github.com/hashicorp/packer/issues/9029
I added it to Packer. It should be released in the upcoming 1.5.7 version
Anyone seen/used https://github.com/wata727/packer-post-processor-amazon-ami-management ?
Packer post-processor plugin for AMI management. Contribute to wata727/packer-post-processor-amazon-ami-management development by creating an account on GitHub.