resource "aws_security_group" "sg-elb" {
  name        = "${var.sg-elb}"
  vpc_id = "${aws_vpc.vpc.id}"
  depends_on = ["aws_internet_gateway.gw"]
  ingress {
    from_port   = 0
    to_port     = 0
    protocol    = "-1"
    cidr_blocks = ["0.0.0.0/0"]
  }

  egress {
    from_port       = 0
    to_port         = 0
    protocol        = "-1"
    cidr_blocks     = ["0.0.0.0/0"]
  }
  tags {
    Name = "${var.sg-elb}"
  }
}
