Atlantis: tflint support?

Created on 10 Jan 2019  路  2Comments  路  Source: runatlantis/atlantis

tflint is a rather useful linter / validator for TF that catches a few things that tf plan can't.

I'm wondering what integrating tflint into the atlantis slow might look like and what work would be required to do so. Is this a good idea? or is this just something that atlantis does not want to concern itsself with?

looking forward to feedback!

waiting-on-response

Most helpful comment

Hi, you can integrate tflint via a custom workflow: https://www.runatlantis.io/guide/atlantis-yaml-use-cases.html#running-custom-commands

For example:

version: 2
projects:
- dir: .
  workflow: tflint
workflows:
  tflint:
    plan:
      steps:
      - init
      - run: tflint
      - plan

Will that work?

All 2 comments

Hi, you can integrate tflint via a custom workflow: https://www.runatlantis.io/guide/atlantis-yaml-use-cases.html#running-custom-commands

For example:

version: 2
projects:
- dir: .
  workflow: tflint
workflows:
  tflint:
    plan:
      steps:
      - init
      - run: tflint
      - plan

Will that work?

@lkysow Yep, that's perfect. I didn't consider doing it this way, i was looking for a cli-arg to pass on server start up... which is not anywhere near the better way to do it.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rverma-jm picture rverma-jm  路  3Comments

kipkoan picture kipkoan  路  3Comments

majormoses picture majormoses  路  3Comments

gaahrdner picture gaahrdner  路  3Comments

younus2019 picture younus2019  路  4Comments