Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Commit

Permalink
Bump terraform to v1.1.4 and tflint to v0.34.1 (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
tdpauw committed Feb 2, 2022
1 parent 67016c1 commit 849ce39
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
10 changes: 10 additions & 0 deletions .tflint.hcl.source
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
config {
module = true
force = false
}

plugin "aws" {
enabled = true
version = "${TFLINT_AWS_RULESET_VERSION}"
source = "github.com/terraform-linters/tflint-ruleset-aws"
}
12 changes: 9 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
FROM alpine:3.13

ARG PLATFORM=linux_amd64
ARG TF_VERSION=0.14.10
ARG TFLINT_VERSION=0.20.3
ARG TF_VERSION=1.1.4
ARG TFLINT_VERSION=0.34.1
ARG TFLINT_AWS_RULESET_VERSION=0.12.0

ARG TF_DIST_FILENAME="terraform_${TF_VERSION}_${PLATFORM}.zip"
ARG TF_DIST_CHECKSUM_FILENAME="terraform_${TF_VERSION}_SHA256SUMS"
Expand All @@ -13,6 +14,8 @@ LABEL org.opencontainers.image.description="Hashicorp Packer with Ansible" \
org.opencontainers.image.source="git@github.com:thinkinglabs/docker-terraform.git" \
org.opencontainers.image.licenses="MIT"

COPY .tflint.hcl.source /root/

RUN wget https://releases.hashicorp.com/terraform/${TF_VERSION}/${TF_DIST_FILENAME} \
&& wget https://releases.hashicorp.com/terraform/${TF_VERSION}/${TF_DIST_CHECKSUM_FILENAME} \
&& set -o pipefail && grep ${PLATFORM} ${TF_DIST_CHECKSUM_FILENAME} | sha256sum -c - \
Expand All @@ -23,4 +26,7 @@ RUN wget https://releases.hashicorp.com/terraform/${TF_VERSION}/${TF_DIST_FILENA
&& set -o pipefail && grep ${PLATFORM} checksums.txt | sha256sum -c - \
&& unzip tflint_${PLATFORM}.zip -d /usr/local/bin \
&& rm tflint_${PLATFORM}.zip checksums.txt \
&& apk update && apk --no-cache add make
&& apk update && apk --no-cache add make gettext \
&& envsubst < /root/.tflint.hcl.source > /root/.tflint.hcl \
&& tflint --init \
&& apk del gettext

0 comments on commit 849ce39

Please sign in to comment.