Annotation comments can disable rules on specific lines:
resource "aws_instance" "foo" {
# tflint-ignore: aws_instance_invalid_type
instance_type = "t1.2xlarge"
}
Multiple rules can be specified as a comma-separated list:
resource "aws_instance" "foo" {
# tflint-ignore: aws_instance_invalid_type, other_rule
instance_type = "t1.2xlarge"
}
All rules can be ignored by specifying the all
keyword:
resource "aws_instance" "foo" {
# tflint-ignore: all
instance_type = "t1.2xlarge"
}