Skip to content

Commit

Permalink
Launch template explicitly disables public IPs
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelhar committed Feb 19, 2025
1 parent fd32560 commit d8887a1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/nodes/nodes.tf
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ resource "aws_launch_template" "node_groups" {
}
}

network_interfaces {
associate_public_ip_address = false
}

lifecycle {
precondition {
condition = length(setsubtract(each.value.availability_zone_ids, data.aws_ec2_instance_type_offerings.nodes[each.key].locations)) == 0
Expand Down

0 comments on commit d8887a1

Please sign in to comment.