Skip to content

tflint

Pluggable Terraform linter

TFLint is a framework and each feature is provided by plugins, the key features are as follows:

  • Find possible errors (like illegal instance types) for Major Cloud providers (AWS/Azure/GCP).
  • Warn about deprecated syntax, unused declarations.
  • Enforce best practices, naming conventions.

devops

https://github.com/terraform-linters/tflint

amd64 arm64

Installation

1. Add WakeMeOps repository

curl -sSL https://raw.githubusercontent.com/upciti/wakemeops/main/assets/install_repository | sudo bash

2. Install tflint

sudo apt install tflint

Snippets

FROM wakemeops/minideb:bullseye

RUN install_packages \
    tflint=0.48.0*

USER 1001
- name: Install dependencies
  uses: upciti/wakemeops-action@v1
  with:
    packages: |
      tflint=0.48.0*

Download URLs

Version SHA256 Size (KB)
0.48.0 c364a05c6190c1634838c3dc53f7bc4422a93232937be54da82910ceb2faffff 6956
0.47.0 f1d615259292719ee3026896eb4f4a7ed43b161592088f7c22cfdadedb11a58e 6581
0.46.1 12615f099f58cf74b6f270b9fc706aa6953c112f13611f548446855647a121f6 6547
0.46.0 3a011dcfb6932cfa72cb1f9f3603df842175dd2727ff7f4ab8c31af9a70484de 6550
0.45.0 9e17fa2d918b8e4e44f84b7a09f9ca514ea153d776f85bda37dfefdce0623f9c 6435
0.44.1 bd34d857fe9c3791e606244ee198d6bd7679a85807e20a3c1f55924255558396 5940
0.44.0 4dfe761a1f14502c9c1b24d7c2d08069837180c897d5402482974e2085c8bdc8 5940
0.43.0 42434679462aea4489ecba4c6fcd8c2aa79ddd99fa217355bd1a1eff746372c9 5894
0.42.2 1a62db2081597511d80f0a7994b613089fc349f6bbbb6d267b3b30fb52689396 5870
0.42.1 590beaa56ca20159a0c8ffaa282e6ecce1a5ed16fa245ae39fa02d0e1daeb4f9 5871
Version SHA256 Size (KB)
0.48.0 afc22ecb8c94bee633d30fbde60ede30fd56e8d88ca7c143d963a9983c154f7d 6027
0.47.0 1d3f6b11b99044f1428504323e230e442e0bae722e50b756683664c1a2fcd49f 5668
0.46.1 23ac68c8b05a54b809dac98e9a36f7041f28656d664eac8b29fd4ba785c70bde 5637
0.46.0 20a5051409f13d0be229d88800f8da551fc2ca68044d02a1c3a137a67634b6ad 5639
0.45.0 1647c99958f7671eabc8aa8cdf8b8432613dd1538e411a45340d7540c8cff0ae 5552
0.44.1 601240cdc817163d1dd28abbeca57745935ba9c699a4340771466442906775b3 5121
0.44.0 600eb9029e0b3dbe71324fbedc43415f1a4ce2819af393a8c1b7f5b05e3160ae 5119
0.43.0 fd782eed183f65b0bb6ba844161d6ce9ff1f39f4d68ca96876747bed114fb336 5081
0.42.2 6448598f4f0a3a5ef96ac8b01dfd37ef35fccd191d1da253c55bc92d567810cb 5061
0.42.1 6064759670a15230da111973e49b1397e3b153191ca7a3e22051b9db02fe9850 5061

Blueprints

Debian packages listed on this page are generated from op2deb YAML blueprints. Blueprints for tflint are versioned here.

Click here to see tflint ops2deb blueprints
https://github.com/upciti/wakemeops/blob/main/blueprints/devops/tflint/ops2deb.yml
name: tflint
matrix:
  versions:
    - 0.39.1
    - 0.39.2
    - 0.39.3
    - 0.40.0
    - 0.40.1
    - 0.41.0
    - 0.42.0
    - 0.42.1
    - 0.42.2
    - 0.43.0
    - 0.44.0
    - 0.44.1
    - 0.45.0
    - 0.46.0
    - 0.46.1
    - 0.47.0
    - 0.48.0
  architectures:
    - amd64
    - arm64
homepage: https://github.com/terraform-linters/tflint
summary: pluggable Terraform linter
description: |-
  TFLint is a framework and each feature is provided by plugins, the key features
  are as follows:

  - Find possible errors (like illegal instance types) for Major Cloud providers
  (AWS/Azure/GCP).
  - Warn about deprecated syntax, unused declarations.
  - Enforce best practices, naming conventions.
fetch: https://github.com/terraform-linters/tflint/releases/download/v{{version}}/tflint_linux_{{target}}.zip
install:
  - tflint:/usr/bin/tflint

The blueprint fetch keyword contains a URL template pointing to tflint releases. Downloaded files are locked in a lockfile versioned here.

Click here to see tflint release hashes
https://github.com/upciti/wakemeops/blob/main/blueprints/devops/tflint/ops2deb.lock.yml
- url: https://github.com/terraform-linters/tflint/releases/download/v0.39.1/tflint_linux_amd64.zip
  sha256: 385c977660f98e033b6b0b22a16dafad9ca530322320fea13882ba5af5340bd4
  timestamp: 2022-08-01 10:25:32+00:00
- url: https://github.com/terraform-linters/tflint/releases/download/v0.39.1/tflint_linux_arm64.zip
  sha256: 3c441136502d9f30596e4ceeb9d047b9af022b19764591d6924eea765f9ddadf
  timestamp: 2022-08-01 10:25:32+00:00
- url: https://github.com/terraform-linters/tflint/releases/download/v0.39.2/tflint_linux_amd64.zip
  sha256: 2a56e42db112ac5ae32ab31f37bee8c0803333eeb85556597935a95adb25f654
  timestamp: 2022-08-04 20:28:35+00:00
- url: https://github.com/terraform-linters/tflint/releases/download/v0.39.2/tflint_linux_arm64.zip
  sha256: c4c0db95bb72b246e26229b97b68f9651c014ed419cce55dd806b1fd98f6e388
  timestamp: 2022-08-04 20:28:35+00:00
- url: https://github.com/terraform-linters/tflint/releases/download/v0.39.3/tflint_linux_amd64.zip
  sha256: 53ab21354c3dedc8ae4296b236330b8b0e76a777d2013a6549107822c60631ef
  timestamp: 2022-08-12 11:21:30+00:00
- url: https://github.com/terraform-linters/tflint/releases/download/v0.39.3/tflint_linux_arm64.zip
  sha256: b41b5b9da78351d00ce5cdd694a4579653aff33157db27c1022352327ac09dac
  timestamp: 2022-08-12 11:21:30+00:00
- url: https://github.com/terraform-linters/tflint/releases/download/v0.40.0/tflint_linux_amd64.zip
  sha256: 9764aa7305466ad8d9870fd60d6de51a3536b6963d6456fca3127b4e5ceb2fbf
  timestamp: 2022-09-07 20:30:20+00:00
- url: https://github.com/terraform-linters/tflint/releases/download/v0.40.0/tflint_linux_arm64.zip
  sha256: 7826b86cded5bf98b6c90675515cf21759aff945e5fb8109aa280d560a793cac
  timestamp: 2022-09-07 20:30:20+00:00
- url: https://github.com/terraform-linters/tflint/releases/download/v0.40.1/tflint_linux_amd64.zip
  sha256: b5eb172ac6cdb61c104f0319397db8b0c0a1b214213b708e7fbef0f352cfc81e
  timestamp: 2022-09-17 17:25:23+00:00
- url: https://github.com/terraform-linters/tflint/releases/download/v0.40.1/tflint_linux_arm64.zip
  sha256: 0df99deb0424a494bfc71c31a98843760c4fcb08b3089a01da68d4c87dcaba5c
  timestamp: 2022-09-17 17:25:23+00:00
- url: https://github.com/terraform-linters/tflint/releases/download/v0.41.0/tflint_linux_amd64.zip
  sha256: 653aa84f25d49f2d8978c619ba13b9ef595eb781ba950e389fbeab1ac496df22
  timestamp: 2022-09-23 20:34:06+00:00
- url: https://github.com/terraform-linters/tflint/releases/download/v0.41.0/tflint_linux_arm64.zip
  sha256: f03ed9b2fe579e75b0a4d2bcf7c4e8728d39fcae9f2f6e0d2f6becf5add9d695
  timestamp: 2022-09-23 20:34:06+00:00
- url: https://github.com/terraform-linters/tflint/releases/download/v0.42.0/tflint_linux_amd64.zip
  sha256: b5f6e6b531a7684b9751988a70377f3af2e8212e24ad2614dda21835c7fb4912
  timestamp: 2022-10-23 17:27:55+00:00
- url: https://github.com/terraform-linters/tflint/releases/download/v0.42.0/tflint_linux_arm64.zip
  sha256: fe571461cf54f6fcad641e5de188d25f6a37ba18497a2ced0fc590efbbc29003
  timestamp: 2022-10-23 17:27:55+00:00
- url: https://github.com/terraform-linters/tflint/releases/download/v0.42.1/tflint_linux_amd64.zip
  sha256: 11294cb2f395182fefdc7d35f49fc18966dda8860fcea1ecd67b6ab190ab7ea0
  timestamp: 2022-10-24 20:44:26+00:00
- url: https://github.com/terraform-linters/tflint/releases/download/v0.42.1/tflint_linux_arm64.zip
  sha256: e4f43948369cbed59a9b1aa65546d913fd380baf9a0e3d6eabb47869d4c721f9
  timestamp: 2022-10-24 20:44:26+00:00
- url: https://github.com/terraform-linters/tflint/releases/download/v0.42.2/tflint_linux_amd64.zip
  sha256: f8ae2758f5b6dcf2d9fecc2b0d7c2cce094112635a13b1f9734a5d0bce8b6e83
  timestamp: 2022-10-25 20:54:59+00:00
- url: https://github.com/terraform-linters/tflint/releases/download/v0.42.2/tflint_linux_arm64.zip
  sha256: f4673e91b5e453fffc9191437efffc76043d80c8d2c314a261729b2159308dcf
  timestamp: 2022-10-25 20:54:59+00:00
- url: https://github.com/terraform-linters/tflint/releases/download/v0.43.0/tflint_linux_amd64.zip
  sha256: a40b0bdb2e4629ef8105c62bffc90f45fe4d8d7a2f667ff1a58b2ec9bf1f7be6
  timestamp: 2022-11-19 13:38:02+00:00
- url: https://github.com/terraform-linters/tflint/releases/download/v0.43.0/tflint_linux_arm64.zip
  sha256: fc468ce9546b1e8fbb89364faa88f02f6661fbf4e00a81df08794cb3d7c7b69d
  timestamp: 2022-11-19 13:38:02+00:00
- url: https://github.com/terraform-linters/tflint/releases/download/v0.44.0/tflint_linux_amd64.zip
  sha256: 1feea8b119e2ddc4391f997c7a3446ddb67934a9ef14dc4cecf912a73c4928c7
  timestamp: 2022-12-26 16:18:36+00:00
- url: https://github.com/terraform-linters/tflint/releases/download/v0.44.0/tflint_linux_arm64.zip
  sha256: b370dc0935c066e594bdaa87c7991e35731b575c36cd60d63b34cf7c4b5a5a5b
  timestamp: 2022-12-26 16:18:36+00:00
- url: https://github.com/terraform-linters/tflint/releases/download/v0.44.1/tflint_linux_amd64.zip
  sha256: 272918c5433ad7a507b04c33015b0ccfb1903828be1c23f0c28149669a327f4c
  timestamp: 2022-12-29 19:22:32+00:00
- url: https://github.com/terraform-linters/tflint/releases/download/v0.44.1/tflint_linux_arm64.zip
  sha256: 2a09a0be9753b31b580c4ec72c331c856f85827d9bd751180b268ba7aaffa968
  timestamp: 2022-12-29 19:22:32+00:00
- url: https://github.com/terraform-linters/tflint/releases/download/v0.45.0/tflint_linux_amd64.zip
  sha256: 3504244bd8221e1862a4e525434290408b4bad224028ad84b3ed4cdab711125f
  timestamp: 2023-02-12 19:22:13+00:00
- url: https://github.com/terraform-linters/tflint/releases/download/v0.45.0/tflint_linux_arm64.zip
  sha256: 655213f2eae45688517ffc734c440ec24e8aed0fd4d03304cf79c2ed6c2c41dc
  timestamp: 2023-02-12 19:22:13+00:00
- url: https://github.com/terraform-linters/tflint/releases/download/v0.46.0/tflint_linux_amd64.zip
  sha256: 31688a3e591a47d763db68f529f1d4297b9fcf17a5e1d024c065ffd087c37cfc
  timestamp: 2023-04-08 18:19:44+00:00
- url: https://github.com/terraform-linters/tflint/releases/download/v0.46.0/tflint_linux_arm64.zip
  sha256: a99438be1985cd71721eace46f482c938f8d8282ceae4151739f20d728cb57d8
  timestamp: 2023-04-08 18:19:44+00:00
- url: https://github.com/terraform-linters/tflint/releases/download/v0.46.1/tflint_linux_amd64.zip
  sha256: 4f292d6ef43c36849f52d2e1f62088f2d4f416e78487cc6d35871e715d0f85c2
  timestamp: 2023-04-25 10:50:55+00:00
- url: https://github.com/terraform-linters/tflint/releases/download/v0.46.1/tflint_linux_arm64.zip
  sha256: c7d7f8f7c02ad74b58b219e928bcdbb93dddfd225b8f98ddebd92851a37a7f4c
  timestamp: 2023-04-25 10:50:55+00:00
- url: https://github.com/terraform-linters/tflint/releases/download/v0.47.0/tflint_linux_amd64.zip
  sha256: 0866123ba33b1d73dab720ca73a6976e5fb5f1c595bdf18a684d5060eca09a96
  timestamp: 2023-06-18 09:15:26+00:00
- url: https://github.com/terraform-linters/tflint/releases/download/v0.47.0/tflint_linux_arm64.zip
  sha256: 4e1e63286b37e4562b26f54bd4ec52db73cf3426211c031f39c2f8c10dc05409
  timestamp: 2023-06-18 09:15:26+00:00
- url: https://github.com/terraform-linters/tflint/releases/download/v0.48.0/tflint_linux_amd64.zip
  sha256: 13c7947963c4dc4f0aa9e0cb7a0854367a425162a508bc7517d1cbcbef822f3c
  timestamp: 2023-09-03 18:18:52+00:00
- url: https://github.com/terraform-linters/tflint/releases/download/v0.48.0/tflint_linux_arm64.zip
  sha256: ef4e07ef95e5f2779df0ed43e62364855dafb92b938cf62f08c64016de2756b0
  timestamp: 2023-09-03 18:18:52+00:00

Badge

WakeMeOps

[![WakeMeOps](https://docs.wakemeops.com/badges/tflint.svg)](https://docs.wakemeops.com/packages/tflint)
<a href="https://docs.wakemeops.com/packages/tflint">
  <img src="https://docs.wakemeops.com/badges/tflint.svg"/>
</a>
.. image:: https://docs.wakemeops.com/badges/tflint.svg
:target: https://docs.wakemeops.com/packages/tflint