resource "aws_security_group" "{{ name }}-kypo-sandbox-internal-sg" {
    name = "kypo-sandbox-internal-sg"
    vpc_id = aws_vpc.{{ name }}.id
    tags = {
        Name = "kypo-sandbox-internal-sg"
    }
}
resource "aws_security_group" "{{ name }}-kypo-sandbox-man-int-sg" {
    name = "kypo-sandbox-man-int-sg"
    vpc_id = aws_vpc.{{ name }}.id
    tags = {
        Name = "kypo-sandbox-man-int-sg"
    }
}
resource "aws_security_group" "{{ name }}-kypo-sandbox-man-sg" {
    name = "kypo-sandbox-man-sg"
    vpc_id = aws_vpc.{{ name }}.id
    tags = {
        Name = "kypo-sandbox-man-sg"
    }
}
resource "aws_vpc_security_group_ingress_rule" "{{ name }}-kypo-sandbox-internal-sg-1" {
    security_group_id = aws_security_group.{{ name }}-kypo-sandbox-internal-sg.id
    ip_protocol = -1
    cidr_ipv4 = "0.0.0.0/0"
}
resource "aws_vpc_security_group_egress_rule" "{{ name }}-kypo-sandbox-internal-sg-2" {
    security_group_id = aws_security_group.{{ name }}-kypo-sandbox-internal-sg.id
    ip_protocol = -1
    cidr_ipv4 = "0.0.0.0/0"
}
resource "aws_vpc_security_group_egress_rule" "{{ name }}-kypo-sandbox-internal-sg-3" {
    security_group_id = aws_security_group.{{ name }}-kypo-sandbox-internal-sg.id
    ip_protocol = -1
    cidr_ipv6 = "::/0"
}
resource "aws_vpc_security_group_egress_rule" "{{ name }}-kypo-sandbox-man-int-sg-1" {
    security_group_id = aws_security_group.{{ name }}-kypo-sandbox-man-int-sg.id
    ip_protocol = "TCP"
    from_port = 515
    to_port = 515
    referenced_security_group_id = aws_security_group.{{ name }}-kypo-sandbox-man-sg.id
}
resource "aws_vpc_security_group_egress_rule" "{{ name }}-kypo-sandbox-man-int-sg-2" {
    security_group_id = aws_security_group.{{ name }}-kypo-sandbox-man-int-sg.id
    ip_protocol = "UDP"
    from_port = 67
    to_port = 67
    cidr_ipv4 = "0.0.0.0/0"
}
resource "aws_vpc_security_group_ingress_rule" "{{ name }}-kypo-sandbox-man-int-sg-3" {
    security_group_id = aws_security_group.{{ name }}-kypo-sandbox-man-int-sg.id
    ip_protocol = "ICMP"
    from_port = -1
    to_port = -1
    referenced_security_group_id = aws_security_group.{{ name }}-kypo-sandbox-man-sg.id
}
resource "aws_vpc_security_group_ingress_rule" "{{ name }}-kypo-sandbox-man-int-sg-4" {
    security_group_id = aws_security_group.{{ name }}-kypo-sandbox-man-int-sg.id
    ip_protocol = "TCP"
    from_port = 22
    to_port = 22
    referenced_security_group_id = aws_security_group.{{ name }}-kypo-sandbox-man-sg.id
}
resource "aws_vpc_security_group_ingress_rule" "{{ name }}-kypo-sandbox-man-int-sg-5" {
    security_group_id = aws_security_group.{{ name }}-kypo-sandbox-man-int-sg.id
    ip_protocol = "TCP"
    from_port = 5986
    to_port = 5986
    referenced_security_group_id = aws_security_group.{{ name }}-kypo-sandbox-man-sg.id
}
resource "aws_vpc_security_group_egress_rule" "{{ name }}-kypo-sandbox-man-sg-1" {
    security_group_id = aws_security_group.{{ name }}-kypo-sandbox-man-sg.id
    ip_protocol = -1
    cidr_ipv4 = "0.0.0.0/0"
}
resource "aws_vpc_security_group_egress_rule" "{{ name }}-kypo-sandbox-man-sg-2" {
    security_group_id = aws_security_group.{{ name }}-kypo-sandbox-man-sg.id
    ip_protocol = -1
    cidr_ipv6 = "::/0"
}
resource "aws_vpc_security_group_ingress_rule" "{{ name }}-kypo-sandbox-man-sg-3" {
    security_group_id = aws_security_group.{{ name }}-kypo-sandbox-man-sg.id
    ip_protocol = "TCP"
    from_port = 515
    to_port = 515
    referenced_security_group_id = aws_security_group.{{ name }}-kypo-sandbox-man-int-sg.id
}
