packer-plugin-amazon icon indicating copy to clipboard operation
packer-plugin-amazon copied to clipboard

Inferring public ip address automatically

Open hc-github-team-packer opened this issue 5 years ago • 1 comments

This issue was originally opened by @LazzariPaolo in https://github.com/hashicorp/packer/issues/11420 and has been migrated to this repository. The original issue description is below.


AWS builders require whitelisting the public ip address of the machine which is running the build. E.g:

temporary_security_group_source_cidrs = ["213..."]

it would be nice to be able to avoid having to hardcode this in the template, and instead get this info automatically, perhaps with a function.

Something like:

temporary_security_group_source_cidrs = [local_public_ip]

hc-github-team-packer avatar Nov 29 '21 15:11 hc-github-team-packer

It looks like this should be closed due to the existence of temporary_security_group_source_public_ip. #250

tjnicholas avatar Mar 18 '26 02:03 tjnicholas