diff --git a/.automation/test/terraform_tflint/good/terraform_tflint_good_1.tf b/.automation/test/terraform_tflint/good/terraform_tflint_good_1.tf index 48b98e43..86676af9 100644 --- a/.automation/test/terraform_tflint/good/terraform_tflint_good_1.tf +++ b/.automation/test/terraform_tflint/good/terraform_tflint_good_1.tf @@ -12,3 +12,13 @@ resource "aws_instance" "good" { encrypted = true } } + +terraform { + required_version = ">=1.0" + required_providers { + aws = { + source = "hashicorp/aws" + version = "~> 4.0" + } + } +} diff --git a/.automation/test/terraform_tflint/modules/ec2_instance/main.tf b/.automation/test/terraform_tflint/modules/ec2_instance/main.tf index 48b98e43..86676af9 100644 --- a/.automation/test/terraform_tflint/modules/ec2_instance/main.tf +++ b/.automation/test/terraform_tflint/modules/ec2_instance/main.tf @@ -12,3 +12,13 @@ resource "aws_instance" "good" { encrypted = true } } + +terraform { + required_version = ">=1.0" + required_providers { + aws = { + source = "hashicorp/aws" + version = "~> 4.0" + } + } +} diff --git a/Dockerfile b/Dockerfile index 0736b0d2..aaa780c9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,7 +13,7 @@ FROM assignuser/chktex-alpine:v0.1.1 as chktex FROM cljkondo/clj-kondo:2022.03.09-alpine as clj-kondo FROM dotenvlinter/dotenv-linter:3.2.0 as dotenv-linter FROM ghcr.io/awkbar-devops/clang-format:v1.0.2 as clang-format -FROM ghcr.io/terraform-linters/tflint-bundle:v0.39.3.1 as tflint +FROM ghcr.io/terraform-linters/tflint-bundle:v0.41.0.0 as tflint FROM golangci/golangci-lint:v1.49.0 as golangci-lint FROM hadolint/hadolint:latest-alpine as dockerfile-lint FROM hashicorp/terraform:1.2.7 as terraform