packer: remove associate_public_ip_address

The documentation for this option says the following:

> If using a non-default VPC, public IP addresses are not provided by default.
> If this is true, your new instance will get a Public IP. default: unset

We don't specify a VPC in the packer build, thus we are using the default
one. Therefore, I don't think we actually need this option as it's useful
only for non-default VPCs.

See
https://developer.hashicorp.com/packer/plugins/builders/amazon/ebs#run-configuration

Signed-off-by: Ondřej Budai <ondrej@budai.cz>
This commit is contained in:
Ondřej Budai 2023-04-21 09:41:12 +02:00 committed by Ondřej Budai
parent c18f2962ae
commit a2a5618149

View file

@ -18,7 +18,6 @@ source "amazon-ebs" "image_builder" {
ami_users = "${var.image_users}"
# Network configuration for the instance building our image.
associate_public_ip_address = true
ssh_interface = "public_ip"
skip_create_ami=var.skip_create_ami