resource "aws_security_group" "sg-0191aa574dbb9695e" {
  description = "SWBD-FF-P2-EXT-ALB-SG"
  egress = [
    {
      cidr_blocks = [
        "0.0.0.0/0",
      ]
      description      = ""
      from_port        = 0
      ipv6_cidr_blocks = []
      prefix_list_ids  = []
      protocol         = "tcp"
      security_groups  = []
      self             = false
      to_port          = 65534
    },
    {
      cidr_blocks = [
        "0.0.0.0/0",
      ]
      description      = ""
      from_port        = 0
      ipv6_cidr_blocks = []
      prefix_list_ids  = []
      protocol         = "udp"
      security_groups  = []
      self             = false
      to_port          = 65534
    },
  ]
  ingress = [
    {
      cidr_blocks = [
        "0.0.0.0/0",
      ]
      description = ""
      from_port   = 443
      ipv6_cidr_blocks = [
        "::/0",
      ]
      prefix_list_ids = []
      protocol        = "tcp"
      security_groups = []
      self            = false
      to_port         = 443
    },
  ]
  name     = "SWBD-FF-P2-EXT-ALB-SG"
  tags     = {
     "Business-unit" = "Switchboard"
    "Environment"   = "Prod"
    "Owner"         = "Robert Dewilder"
    "Patch Group"   = "General"
    "Project-Code"  = "Switchboard"
    "Project-Name"  = "Switchboard"
    "CLOPS_FW" = "NO"
    "Name"          = "SWBD-FF-P2-EXT-ALB-SG"
  }
  tags_all = {
     "Business-unit" = "Switchboard"
    "Environment"   = "Prod"
    "Owner"         = "Robert Dewilder"
    "Patch Group"   = "General"
    "Project-Code"  = "Switchboard"
    "Project-Name"  = "Switchboard"
    "CLOPS_FW" = "NO"
    "Name"          = "SWBD-FF-P2-EXT-ALB-SG"
  }
  vpc_id   = "vpc-00cbd3af7e606b243"

}

resource "aws_security_group" "sg-096379bddd31cf55e" {
  description = "default VPC security group"
  egress      = []
  ingress     = []
  name        = "default"
  tags        = {
    "Business-unit" = "Switchboard"
    "Environment"   = "Prod"
    "Owner"         = "Robert Dewilder"
    "Project-Code"  = "Switchboard"
    "Project-Name"  = "Switchboard"
    "CLOPS_FW" = "NO"
    "Name"          = "default"
  }
  tags_all    = {}
  vpc_id      = "vpc-00cbd3af7e606b243"

}

resource "aws_security_group" "sg-045ab0b2768df2e58" {
  description = "SWBD-FF-P2-UTIL01-SG"
  egress = [
    {
      cidr_blocks = [
        "0.0.0.0/0",
      ]
      description      = "HTTP"
      from_port        = 80
      ipv6_cidr_blocks = []
      prefix_list_ids  = []
      protocol         = "tcp"
      security_groups  = []
      self             = false
      to_port          = 80
    },
    {
      cidr_blocks = [
        "0.0.0.0/0",
      ]
      description      = "HTTPS"
      from_port        = 443
      ipv6_cidr_blocks = []
      prefix_list_ids  = []
      protocol         = "tcp"
      security_groups  = []
      self             = false
      to_port          = 443
    },
    {
      cidr_blocks = [
        "10.12.246.64/26",
        "10.12.237.160/27",
      ]
      description      = "CLOPS-SMTP-EP"
      from_port        = 587
      ipv6_cidr_blocks = []
      prefix_list_ids  = []
      protocol         = "tcp"
      security_groups  = []
      self             = false
      to_port          = 587
    },
    {
      cidr_blocks = [
        "10.250.37.96/27",
      ]
      description      = "VPC-CIDR-1"
      from_port        = 0
      ipv6_cidr_blocks = []
      prefix_list_ids  = []
      protocol         = "-1"
      security_groups  = []
      self             = false
      to_port          = 0
    },
  ]
  ingress = [
    {
      cidr_blocks = [
        "10.11.176.219/32",
      ]
      description      = "cloudopsff-bastion02"
      from_port        = 22
      ipv6_cidr_blocks = []
      prefix_list_ids  = []
      protocol         = "tcp"
      security_groups  = []
      self             = false
      to_port          = 22
    },
    {
      cidr_blocks = [
        "10.12.246.75/32",
      ]
      description      = "clshrd-bastion01"
      from_port        = 22
      ipv6_cidr_blocks = []
      prefix_list_ids  = []
      protocol         = "tcp"
      security_groups  = []
      self             = false
      to_port          = 22
    },
    {
      cidr_blocks = [
        "10.250.2.64/27",
      ]
      description      = "Ansible_Tower"
      from_port        = 22
      ipv6_cidr_blocks = []
      prefix_list_ids  = []
      protocol         = "tcp"
      security_groups  = []
      self             = false
      to_port          = 22
    },
    {
      cidr_blocks = [
        "10.250.2.85/32",
      ]
      description      = "Utils"
      from_port        = 22
      ipv6_cidr_blocks = []
      prefix_list_ids  = []
      protocol         = "tcp"
      security_groups  = []
      self             = false
      to_port          = 22
    },
  ]
  name = "SWBD-FF-P2-UTIL01-SG"
  tags = {
    "Business-unit" = "Switchboard"
    "Environment"   = "Prod"
    "Owner"         = "Robert Dewilder"
    "Patch Group"   = "General"
    "Project-Code"  = "Switchboard"
    "Project-Name"  = "Switchboard"
    "CLOPS_FW" = "NO"
    "Name"          = "SWBD-FF-P2-UTIL01-SG"
  }
  tags_all = {
    "Business-unit" = "Switchboard"
    "Environment"   = "Prod"
    "Owner"         = "Robert Dewilder"
    "Patch Group"   = "General"
    "Project-Code"  = "Switchboard"
    "Project-Name"  = "Switchboard"
    "CLOPS_FW" = "NO"
    "Name"          = "SWBD-FF-P2-UTIL01-SG"
  }
  vpc_id = "vpc-00cbd3af7e606b243"

}

resource "aws_security_group" "sg-07eb00c8b1d7f056a" {
  description = "SWBD-FF-P2-GSIRT-SG"
  egress = [
    {
      cidr_blocks = [
        "10.250.37.96/27",
      ]
      description      = "GSIRT TCP-8089"
      from_port        = 8089
      ipv6_cidr_blocks = []
      prefix_list_ids  = []
      protocol         = "tcp"
      security_groups  = []
      self             = false
      to_port          = 8089
    },
    {
      cidr_blocks = [
        "10.250.37.96/27",
      ]
      description      = "GSIRT TCP-9998"
      from_port        = 9998
      ipv6_cidr_blocks = []
      prefix_list_ids  = []
      protocol         = "tcp"
      security_groups  = []
      self             = false
      to_port          = 9998
    },
  ]
  ingress = [
    {
      cidr_blocks = [
        "10.250.37.96/27",
      ]
      description      = "GSIRT TCP-8089"
      from_port        = 8089
      ipv6_cidr_blocks = []
      prefix_list_ids  = []
      protocol         = "tcp"
      security_groups  = []
      self             = false
      to_port          = 8089
    },
    {
      cidr_blocks = [
        "10.250.37.96/27",
      ]
      description      = "GSIRT TCP-9998"
      from_port        = 9998
      ipv6_cidr_blocks = []
      prefix_list_ids  = []
      protocol         = "tcp"
      security_groups  = []
      self             = false
      to_port          = 9998
    },
  ]
  name = "SWBD-FF-P2-GSIRT-SG"
  tags = {
    "Business-unit" = "Switchboard"
    "Environment"   = "Prod"
    "Owner"         = "Robert Dewilder"
    "Project-Code"  = "Switchboard"
    "Project-Name"  = "Switchboard"
    "Name"          = "SWBD-FF-P2-GSIRT-SG"
    "CLOPS_FW" = "NO"
  }
  tags_all = {
    "Business-unit" = "Switchboard"
    "Environment"   = "Prod"
    "Owner"         = "Robert Dewilder"
    "Project-Code"  = "Switchboard"
    "Project-Name"  = "Switchboard"
    "Name"          = "SWBD-FF-P2-GSIRT-SG"
    "CLOPS_FW" = "NO"
  }
  vpc_id = "vpc-00cbd3af7e606b243"

}

