#packer (2020-04)

packer

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

2020-04-13

Abel Luck avatar
Abel Luck
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.

2020-04-09

2020-04-08

RB avatar

anyone know how to retrieve the source ami date ?

Jason Walsh avatar
Jason Walsh

The ec2 describe-images API might be useful

RB avatar

ya i mean i could use the awscli or boto to do it. i was hoping there was something within packer

Jason Walsh avatar
Jason Walsh

Not that I’m aware of

RB avatar

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

RB avatar

I added it to Packer. It should be released in the upcoming 1.5.7 version

2020-04-06

ikar avatar

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 avatar
Abel Luck

I usually use a Makefile with an environment variable to build AMIs dynamically with packer

Abel Luck avatar
Abel Luck

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 avatar

oh, good idea! you use HCL or JSON for that?

Abel Luck avatar
Abel Luck

i’ve only used JSON with packer

Abel Luck avatar
Abel Luck

haven’t had time to try out HCL with packer yet

ikar avatar

cool thanks!

    keyboard_arrow_up