-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.tflint.hcl
More file actions
74 lines (60 loc) · 1.56 KB
/
Copy path.tflint.hcl
File metadata and controls
74 lines (60 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# TFLint Configuration
# https://github.com/terraform-linters/tflint
config {
# Enable all available plugins
module = true
}
# AWS Plugin
plugin "aws" {
enabled = true
version = "0.28.0"
source = "github.com/terraform-linters/tflint-ruleset-aws"
}
# Terraform Plugin (built-in rules)
plugin "terraform" {
enabled = true
preset = "recommended"
}
#------------------------------------------------------------------------------
# Rule Configuration
#------------------------------------------------------------------------------
# Naming conventions
rule "terraform_naming_convention" {
enabled = true
format = "snake_case"
}
# Required providers version
rule "terraform_required_providers" {
enabled = true
}
# Required version
rule "terraform_required_version" {
enabled = true
}
# Standard module structure
rule "terraform_standard_module_structure" {
enabled = true
}
# Documented variables
rule "terraform_documented_variables" {
enabled = true
}
# Documented outputs
rule "terraform_documented_outputs" {
enabled = true
}
#------------------------------------------------------------------------------
# AWS-Specific Rules
#------------------------------------------------------------------------------
# Ensure instance types are valid
rule "aws_instance_invalid_type" {
enabled = true
}
# Ensure AMI IDs are valid format
rule "aws_instance_invalid_ami" {
enabled = true
}
# Ensure IAM policies don't use wildcards excessively
rule "aws_iam_policy_document_gov_friendly_arns" {
enabled = false # Disabled - we handle GovCloud ARNs properly
}