Sign inSign up

tvdgnr/tflint

By tvdgnr

Updated over 5 years ago

Container for utilizing tflint.

Image
0

967

tvdgnr/tflint repository overview

Container to utilize tf and tflint.

docker run -it --rm tvdgnr/tflint --version
TFLint version 0.24.1

To lint your code add a volume.

docker run -it --rm -v $(pwd):/src tvdgnr/tflint <command>
docker run -it --rm tvdgnr/tflint --help
Usage:
  tflint [OPTIONS] [FILE or DIR...]

Application Options:
  -v, --version                                   Print TFLint version
      --langserver                                Start language server
  -f, --format=[default|json|checkstyle|junit]    Output format (default: default)
  -c, --config=FILE                               Config file name (default: .tflint.hcl)
      --ignore-module=SOURCE                      Ignore module sources
      --enable-rule=RULE_NAME                     Enable rules from the command line
      --disable-rule=RULE_NAME                    Disable rules from the command line
      --only=RULE_NAME                            Enable only this rule, disabling all other defaults. Can be specified multiple times
      --var-file=FILE                             Terraform variable file name
      --var='foo=bar'                             Set a Terraform variable
      --module                                    Inspect modules
      --force                                     Return zero exit status even if issues found
      --no-color                                  Disable colorized output
      --loglevel=[trace|debug|info|warn|error]    Change the loglevel (default: none)

Help Options:
  -h, --help                                      Show this help message

You are able to pass any parameter from tflint to the container to customize the behavior.

Extensions

This container includes the extensions for Amazon Web Services, Microsoft Azure and Google Cloud Platform.

If you want include these during liniting please provide a .tflint.hcl configuration.

Amazon Web Services

plugin "aws" {
    enabled = true
}

Microsoft Azure

plugin "azurerm" {
    enabled = true
}

Google Cloud Platform

plugin "google" {
    enabled = true
}

Tag summary

Content type

Image

Digest

Size

64.6 MB

Last updated

over 5 years ago

docker pull tvdgnr/tflint