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!
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.
Most helpful comment
Hi, you can integrate
tflintvia a custom workflow: https://www.runatlantis.io/guide/atlantis-yaml-use-cases.html#running-custom-commandsFor example:
Will that work?