Warning egress security group

While running the code i am getting a warning [WARNING] Resource ‘aws_security_group.lambda’ defines a fully open egress security group. Anyone help me out how to avoid this warning. This is my egress code
from_port = 0
to_port = 0
protocol = “-1”
cidr_blocks = [“0.0.0.0/0”]
}