Skip to content

Commit b9d1268

Browse files
committed
ci: refactor terraform validation
1 parent 9b93834 commit b9d1268

File tree

2 files changed

+14
-15
lines changed

2 files changed

+14
-15
lines changed

.github/workflows/terraform-validate-template.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,4 @@ jobs:
5858
github_token: ${{ secrets.GITHUB_TOKEN }}
5959
- name: Run TFLint
6060
run: |
61-
tflint --init -c ${GITHUB_WORKSPACE}/.tflint.hcl
6261
tflint -c ${GITHUB_WORKSPACE}/.tflint.hcl --var-file ${GITHUB_WORKSPACE}/.github/lint/tflint.tfvars

.tflint.hcl

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,26 @@ config {
33
call_module_type = "local"
44
}
55

6-
# plugin "terraform" {
7-
# enabled = true
8-
# version = "0.10.0"
9-
# source = "github.com/terraform-linters/tflint-ruleset-terraform"
10-
# }
6+
plugin "terraform" {
7+
enabled = true
8+
version = "0.10.0"
9+
source = "github.com/terraform-linters/tflint-ruleset-terraform"
10+
}
1111

1212
plugin "aws" {
1313
enabled = true
1414
version = "0.34.0"
1515
source = "github.com/terraform-linters/tflint-ruleset-aws"
1616
}
1717

18-
rule "terraform_comment_syntax" {
19-
enabled = true
20-
}
18+
# rule "terraform_comment_syntax" {
19+
# enabled = true
20+
# }
2121

22-
rule "terraform_naming_convention" {
23-
enabled = true
24-
}
22+
# rule "terraform_naming_convention" {
23+
# enabled = true
24+
# }
2525

26-
rule "terraform_documented_variables" {
27-
enabled = true
28-
}
26+
# rule "terraform_documented_variables" {
27+
# enabled = true
28+
# }

0 commit comments

Comments
 (0)