From ae101e6545f6f3dbe4db0d2ab70c25617c2c08c0 Mon Sep 17 00:00:00 2001 From: Alexis Hudgens Date: Thu, 24 Apr 2025 13:02:05 -0400 Subject: [PATCH] allow use of public subnets --- vsensors.tf | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/vsensors.tf b/vsensors.tf index be6865c..2ce004d 100644 --- a/vsensors.tf +++ b/vsensors.tf @@ -22,20 +22,16 @@ locals { # resource "aws_launch_template" "vsensor" { - name = "${local.deployment_id}-vsensor-${local.instance_version}" - description = "vSensor Launch Template" - image_id = data.aws_ami.ubuntu.id - instance_type = var.instance_type + name = "${local.deployment_id}-vsensor-${local.instance_version}" + description = "vSensor Launch Template" + image_id = data.aws_ami.ubuntu.id + instance_type = var.instance_type + vpc_security_group_ids = [aws_security_group.vsensors_asg_sg.id] iam_instance_profile { name = aws_iam_instance_profile.vsensor.name } - network_interfaces { - associate_public_ip_address = false - security_groups = [aws_security_group.vsensors_asg_sg.id] - } - key_name = var.ssh_keyname metadata_options {