From 906cb937d196cc1332552b6dbe7e9724e00d130c Mon Sep 17 00:00:00 2001 From: John Wiebalk Date: Thu, 2 Apr 2020 12:09:34 -0400 Subject: [PATCH 1/5] remove deep mode --- TEMPLATES/.tflint.hcl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TEMPLATES/.tflint.hcl b/TEMPLATES/.tflint.hcl index 657793c9..5bc2209b 100644 --- a/TEMPLATES/.tflint.hcl +++ b/TEMPLATES/.tflint.hcl @@ -1,7 +1,7 @@ // https://github.com/terraform-linters/tflint/blob/master/docs/guides/config.md config { module = true - deep_check = true + deep_check = false force = false // aws_credentials = { @@ -20,7 +20,7 @@ config { } rule "aws_instance_invalid_type" { - enabled = true + enabled = false } rule "aws_instance_previous_type" { From 16e2c0ca07e4897379925cb0c1f02a89f33dfa11 Mon Sep 17 00:00:00 2001 From: John Wiebalk Date: Thu, 2 Apr 2020 12:30:11 -0400 Subject: [PATCH 2/5] make bad fail --- .automation/test/terraform/terraform_bad_1.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.automation/test/terraform/terraform_bad_1.tf b/.automation/test/terraform/terraform_bad_1.tf index 780a0839..e734fff5 100644 --- a/.automation/test/terraform/terraform_bad_1.tf +++ b/.automation/test/terraform/terraform_bad_1.tf @@ -1,4 +1,4 @@ resource "aws_instance" "bad" { ami = "ami-0ff8a91507f77f867" - instance_type = "t.2xlarge" # invalid type! + instance_type = # invalid type! } From 7c782262252fa2e4688ab3d3f650c28d6d99da9f Mon Sep 17 00:00:00 2001 From: John Wiebalk Date: Thu, 2 Apr 2020 12:30:42 -0400 Subject: [PATCH 3/5] Delete init.tf --- .automation/test/terraform/init.tf | 3 --- 1 file changed, 3 deletions(-) delete mode 100644 .automation/test/terraform/init.tf diff --git a/.automation/test/terraform/init.tf b/.automation/test/terraform/init.tf deleted file mode 100644 index c1259402..00000000 --- a/.automation/test/terraform/init.tf +++ /dev/null @@ -1,3 +0,0 @@ -provider "aws" { - region = "us-east-1" -} From 8abca9a00fc99cd81e4cbbafb69b4c76fbe9282a Mon Sep 17 00:00:00 2001 From: John Wiebalk Date: Thu, 2 Apr 2020 13:03:57 -0400 Subject: [PATCH 4/5] move to separate dir --- .automation/test/terraform/{ => bad}/terraform_bad_1.tf | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .automation/test/terraform/{ => bad}/terraform_bad_1.tf (100%) diff --git a/.automation/test/terraform/terraform_bad_1.tf b/.automation/test/terraform/bad/terraform_bad_1.tf similarity index 100% rename from .automation/test/terraform/terraform_bad_1.tf rename to .automation/test/terraform/bad/terraform_bad_1.tf From a6b3e934ae522b49c2846b1ce04cd2e71a40d138 Mon Sep 17 00:00:00 2001 From: John Wiebalk Date: Thu, 2 Apr 2020 13:04:23 -0400 Subject: [PATCH 5/5] make good dir --- .automation/test/terraform/{ => good}/terraform_good_1.tf | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .automation/test/terraform/{ => good}/terraform_good_1.tf (100%) diff --git a/.automation/test/terraform/terraform_good_1.tf b/.automation/test/terraform/good/terraform_good_1.tf similarity index 100% rename from .automation/test/terraform/terraform_good_1.tf rename to .automation/test/terraform/good/terraform_good_1.tf