Skip to content

Commit fa1d422

Browse files
authored
fix: Ensure module created security group is included on any network interfaces created (#3495)
1 parent 23a67d0 commit fa1d422

File tree

1 file changed

+1
-1
lines changed
  • modules/self-managed-node-group

1 file changed

+1
-1
lines changed

modules/self-managed-node-group/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ resource "aws_launch_template" "this" {
433433
primary_ipv6 = network_interfaces.value.primary_ipv6
434434
private_ip_address = network_interfaces.value.private_ip_address
435435
# Ref: https://github.com/hashicorp/terraform-provider-aws/issues/4570
436-
security_groups = compact(concat(network_interfaces.value.security_groups, var.vpc_security_group_ids))
436+
security_groups = compact(concat(network_interfaces.value.security_groups, local.security_group_ids))
437437
# Set on EKS managed node group, will fail if set here
438438
# https://docs.aws.amazon.com/eks/latest/userguide/launch-templates.html#launch-template-basics
439439
# subnet_id = try(network_interfaces.value.subnet_id, null)

0 commit comments

Comments
 (0)