From a2a5618149a2ffc90bbf5da07ed015f16e6cee04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Budai?= Date: Fri, 21 Apr 2023 09:41:12 +0200 Subject: [PATCH] packer: remove associate_public_ip_address MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- templates/packer/worker.pkr.hcl | 1 - 1 file changed, 1 deletion(-) diff --git a/templates/packer/worker.pkr.hcl b/templates/packer/worker.pkr.hcl index 80df3ff58..944b7989c 100644 --- a/templates/packer/worker.pkr.hcl +++ b/templates/packer/worker.pkr.hcl @@ -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