Skip to content

Commit e5cff84

Browse files
fix: Ensure module created security group is included on any network interfaces created (#3493)
* fix(module): wrong variable name in eks-managed-node-group * Update modules/eks-managed-node-group/main.tf --------- Co-authored-by: Bryant Biggs <[email protected]>
1 parent e5c35cf commit e5cff84

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

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

0 commit comments

Comments
 (0)