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

Add Static IP option for AWS and Azure

Open ghost opened this issue 4 years ago • 2 comments

This issue was originally opened by @TechnicalMercenary as hashicorp/packer#10435. It was migrated here as a result of the Packer plugin split. The original body of the issue is below.


Description

When I'm building an GCP VMI, a googlecompute builder, I can specify an 'address' which allows an "pre-allocated static external IP address". I do this because a software repo that I'm pulling from is protected by IP whitelist.

I would like something similar in the 'amazon-ebs' builder and the 'azure-arm' builder. I'm pretty sure that both cloud platforms allow a pre-allocated Static IP to be assigned.

AWS has their Elastic IPs Azure has 'Public IP address'

Use Case(s)

Allow the AMI/VMI being built to have a known IP. This would allow access to external resources that are secured by IP whitelist ( allow list ).

Potential configuration

See the googlecompute documentation for reference

Potential References

ghost avatar Mar 29 '21 11:03 ghost

Are static IPs on AWS/Azure supported in Packer now? Or perhaps someone can help me figure this out?

pythonmobile avatar Sep 02 '21 13:09 pythonmobile

Can we pass static IP for AWS Packer now?

mnr3395 avatar Jul 20 '23 05:07 mnr3395