Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 631 Bytes

aws_security_group_rule_invalid_protocol.md

File metadata and controls

33 lines (22 loc) · 631 Bytes

aws_security_group_rule_invalid_protocol

Disallow using invalid protocol.

Example

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"

Why

Apply will fail. (Plan will succeed with the invalid value though)

How To Fix

Select valid protocol according to the document