Disallow using invalid protocol.
resource "aws_security_group_rule" "sample" {
type = "ingress"
from_port = 443
to_port = 443
protocol = "https"
}
$ tflint
1 issue(s) found:
Error: "https" is an invalid protocol. (aws_security_group_rule_invalid_protocol)
on terraform.tf line 5:
5: protocol = "https"
Apply will fail. (Plan will succeed with the invalid value though)
Select valid protocol according to the document