deploy/test-environments/modules/aws/eks/security-groups.tf (24 lines of code) (raw):

resource "aws_security_group" "node_group_one" { name_prefix = "${local.cluster_name}_1" vpc_id = module.vpc.vpc_id ingress { from_port = 22 to_port = 22 protocol = "tcp" cidr_blocks = [ "10.0.0.0/8", ] } } resource "aws_security_group" "node_group_two" { name_prefix = "${local.cluster_name}_2" vpc_id = module.vpc.vpc_id ingress { from_port = 22 to_port = 22 protocol = "tcp" cidr_blocks = [ "192.168.0.0/16", ] } }