resource "aws_network_acl" "acl-027c0774a895fc0cb" {
  # checkov:skip=CKV_AWS_229: Public NACL FTP ingress rules required for this legacy VPC
  # checkov:skip=CKV_AWS_230: Public NACL FTP-data ingress rules required for this legacy VPC
  # checkov:skip=CKV_AWS_231: Public NACL RDP ingress rules required for this legacy VPC
  # checkov:skip=CKV_AWS_232: Public NACL SSH ingress rules required for this legacy VPC
  # checkov:skip=CKV2_AWS_1: NACL subnet association managed separately for this legacy VPC
  egress {
    action     = "allow"
    cidr_block = "0.0.0.0/0"
    from_port  = "0"
    icmp_code  = "0"
    icmp_type  = "0"
    protocol   = "-1"
    rule_no    = "100"
    to_port    = "0"
  }

  ingress {
    action     = "allow"
    cidr_block = "0.0.0.0/0"
    from_port  = "0"
    icmp_code  = "0"
    icmp_type  = "0"
    protocol   = "-1"
    rule_no    = "100"
    to_port    = "0"
  }

  vpc_id = "vpc-005357d65b5823894"
}

resource "aws_network_acl" "acl-06d091e71c5e79067" {
  # checkov:skip=CKV_AWS_231: Public NACL RDP ingress rules required for this legacy VPC
  # checkov:skip=CKV2_AWS_1: NACL subnet association managed separately for this legacy VPC
  egress {
    action     = "allow"
    cidr_block = "0.0.0.0/0"
    from_port  = "0"
    icmp_code  = "0"
    icmp_type  = "0"
    protocol   = "-1"
    rule_no    = "1"
    to_port    = "0"
  }

  ingress {
    action     = "allow"
    cidr_block = "0.0.0.0/0"
    from_port  = "0"
    icmp_code  = "0"
    icmp_type  = "0"
    protocol   = "17"
    rule_no    = "4"
    to_port    = "65535"
  }

  ingress {
    action     = "allow"
    cidr_block = "0.0.0.0/0"
    from_port  = "1024"
    icmp_code  = "0"
    icmp_type  = "0"
    protocol   = "6"
    rule_no    = "3"
    to_port    = "65535"
  }

  ingress {
    action     = "allow"
    cidr_block = "0.0.0.0/0"
    from_port  = "443"
    icmp_code  = "0"
    icmp_type  = "0"
    protocol   = "6"
    rule_no    = "2"
    to_port    = "443"
  }

  ingress {
    action     = "allow"
    cidr_block = "10.0.0.0/8"
    from_port  = "0"
    icmp_code  = "0"
    icmp_type  = "0"
    protocol   = "-1"
    rule_no    = "5"
    to_port    = "0"
  }

  subnet_ids = ["subnet-0cc2fab9aeb18f3b3", "subnet-0d0e24cc265c5b859"]

  tags = {
    Business-unit = "Media Conversion"
    Environment   = "PROD"
    Name          = "MCDEL-P2-PUB-NACL"
    Owner         = "Sang Han"
    Project-code  = "MCON"
    Project-name  = "MCON-DEL"
  }

  tags_all = {
    Business-unit = "Media Conversion"
    Environment   = "PROD"
    Name          = "MCDEL-P2-PUB-NACL"
    Owner         = "Sang Han"
    Project-code  = "MCON"
    Project-name  = "MCON-DEL"
  }

  vpc_id = "vpc-005357d65b5823894"
}

resource "aws_network_acl" "acl-0829c70c56a3b14b1" {
  # checkov:skip=CKV_AWS_231: Public NACL RDP ingress rules required for this legacy VPC
  # checkov:skip=CKV2_AWS_1: NACL subnet association managed separately for this legacy VPC
  egress {
    action     = "allow"
    cidr_block = "0.0.0.0/0"
    from_port  = "0"
    icmp_code  = "0"
    icmp_type  = "0"
    protocol   = "-1"
    rule_no    = "1"
    to_port    = "0"
  }

  ingress {
    action     = "allow"
    cidr_block = "0.0.0.0/0"
    from_port  = "0"
    icmp_code  = "0"
    icmp_type  = "0"
    protocol   = "17"
    rule_no    = "6"
    to_port    = "65535"
  }

  ingress {
    action     = "allow"
    cidr_block = "0.0.0.0/0"
    from_port  = "1024"
    icmp_code  = "0"
    icmp_type  = "0"
    protocol   = "6"
    rule_no    = "5"
    to_port    = "65535"
  }

  ingress {
    action     = "allow"
    cidr_block = "10.0.0.0/8"
    from_port  = "0"
    icmp_code  = "0"
    icmp_type  = "0"
    protocol   = "-1"
    rule_no    = "7"
    to_port    = "0"
  }

  ingress {
    action     = "allow"
    cidr_block = "10.0.0.0/8"
    from_port  = "22"
    icmp_code  = "0"
    icmp_type  = "0"
    protocol   = "6"
    rule_no    = "2"
    to_port    = "22"
  }

  ingress {
    action     = "allow"
    cidr_block = "10.11.184.0/26"
    from_port  = "0"
    icmp_code  = "0"
    icmp_type  = "0"
    protocol   = "-1"
    rule_no    = "9"
    to_port    = "0"
  }

  ingress {
    action     = "allow"
    cidr_block = "10.12.246.0/25"
    from_port  = "3389"
    icmp_code  = "0"
    icmp_type  = "0"
    protocol   = "6"
    rule_no    = "11"
    to_port    = "3389"
  }

  ingress {
    action     = "allow"
    cidr_block = "10.250.80.0/21"
    from_port  = "0"
    icmp_code  = "0"
    icmp_type  = "0"
    protocol   = "-1"
    rule_no    = "10"
    to_port    = "0"
  }

  ingress {
    action     = "allow"
    cidr_block = "162.49.0.0/16"
    from_port  = "22"
    icmp_code  = "0"
    icmp_type  = "0"
    protocol   = "6"
    rule_no    = "3"
    to_port    = "22"
  }

  ingress {
    action     = "allow"
    cidr_block = "172.29.16.0/21"
    from_port  = "0"
    icmp_code  = "0"
    icmp_type  = "0"
    protocol   = "-1"
    rule_no    = "8"
    to_port    = "0"
  }

  ingress {
    action     = "allow"
    cidr_block = "192.168.0.0/16"
    from_port  = "22"
    icmp_code  = "0"
    icmp_type  = "0"
    protocol   = "6"
    rule_no    = "4"
    to_port    = "22"
  }

  subnet_ids = ["subnet-05c29c63afff8d7c3", "subnet-06c2dd8a67cf6bec4", "subnet-08dd0d45659ad7d2f", "subnet-08e1ec91926400dea", "subnet-0b085539049c5d493", "subnet-0b757382e8c6c9c5e"]

  tags = {
    Business-unit = "Media Conversion"
    Environment   = "PROD"
    Name          = "MCDEL-P2-APP-NACL"
    Owner         = "Sang Han"
    Project-code  = "MCON"
    Project-name  = "MCON-DEL"
  }

  tags_all = {
    Business-unit = "Media Conversion"
    Environment   = "PROD"
    Name          = "MCDEL-P2-APP-NACL"
    Owner         = "Sang Han"
    Project-code  = "MCON"
    Project-name  = "MCON-DEL"
  }

  vpc_id = "vpc-005357d65b5823894"
}

resource "aws_network_acl" "acl-0daad9b360d71642f" {
  # checkov:skip=CKV2_AWS_1: NACL subnet association managed separately for this legacy VPC
  egress {
    action     = "allow"
    cidr_block = "0.0.0.0/0"
    from_port  = "0"
    icmp_code  = "0"
    icmp_type  = "0"
    protocol   = "-1"
    rule_no    = "1"
    to_port    = "0"
  }

  ingress {
    action     = "allow"
    cidr_block = "10.0.0.0/8"
    from_port  = "0"
    icmp_code  = "0"
    icmp_type  = "0"
    protocol   = "-1"
    rule_no    = "7"
    to_port    = "0"
  }

  subnet_ids = ["subnet-05a5ef0726aff87bb", "subnet-0f9e121852de9b412"]

  tags = {
    Business-unit = "Media Conversion"
    Environment   = "PROD"
    Name          = "MCDEL-P2-RDS-NACL"
    Owner         = "Sang Han"
    Project-code  = "MCON"
    Project-name  = "MCON-DEL"
  }

  tags_all = {
    Business-unit = "Media Conversion"
    Environment   = "PROD"
    Name          = "MCDEL-P2-RDS-NACL"
    Owner         = "Sang Han"
    Project-code  = "MCON"
    Project-name  = "MCON-DEL"
  }

  vpc_id = "vpc-005357d65b5823894"
}
