Skip to content

Commit

Permalink
move the security group
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelhar committed Feb 19, 2025
1 parent 4f4ea73 commit c07ac42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/nodes/nodes.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ resource "aws_launch_template" "node_groups" {
pre_bootstrap_user_data = ""
post_bootstrap_user_data = ""
}))
vpc_security_group_ids = [var.eks_info.nodes.security_group_id]
image_id = each.value.ami
image_id = each.value.ami

block_device_mappings {
device_name = try(data.aws_ami.custom[each.value.ami].root_device_name, "/dev/xvda")
Expand Down Expand Up @@ -55,6 +54,7 @@ resource "aws_launch_template" "node_groups" {

network_interfaces {
associate_public_ip_address = false
security_groups = [var.eks_info.nodes.security_group_id]
}

lifecycle {
Expand Down

0 comments on commit c07ac42

Please sign in to comment.