-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path_azure.tmpl.hcl
51 lines (41 loc) · 1.17 KB
/
_azure.tmpl.hcl
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
{{/*
DEFINE THE PLUGIN BLOCK.
*/}}
{{ define "plugin" }}
plugin "azurerm" {
enabled = true
deep_check = true
version = "{{ .tag }}"
source = "github.com/terraform-linters/tflint-ruleset-azurerm"
}{{ end }}
{{/*
DEFINE THE PLUGIN RULES.
*/}}
{{ define "plugin_rules" }}
#-------------------------------------------------------------------------------
# Basic Rules
# https://github.com/terraform-linters/tflint-ruleset-azurerm/blob/master/docs/README.md
rule "azurerm_linux_virtual_machine_invalid_size" {
enabled = true
}
rule "azurerm_linux_virtual_machine_scale_set_invalid_sku" {
enabled = true
}
rule "azurerm_virtual_machine_invalid_vm_size" {
enabled = true
}
rule "azurerm_windows_virtual_machine_invalid_size" {
enabled = true
}
rule "azurerm_windows_virtual_machine_scale_set_invalid_sku" {
enabled = true
}
#-------------------------------------------------------------------------------
# API Specification Rules
# https://github.com/terraform-linters/tflint-ruleset-azurerm/blob/master/docs/README.md
{{ "{{" }} range $v := .RuleNameList -{{ "}}" }}
rule "{{ "{{" }} $v {{ "}}" }}" {
enabled = true
}
{{ "{{" }} end -{{ "}}" }}
{{- end }}