Skip to content

Latest commit

 

History

History
54 lines (38 loc) · 1.79 KB

README.md

File metadata and controls

54 lines (38 loc) · 1.79 KB

ZeroNorth TFLint Ruleset Plugin

Build Status

This is the repository for ZeroNorth's custom TFLint ruleset.

Requirements

  • TFLint v0.40+
  • Go v1.19

Installation

You can install the plugin with tflint --init. Declare a config in .tflint.hcl as follows:

plugin "0north-plugin" {
  enabled = true
  version = "1.0.0"
  source = "github.com/0north/tflint-ruleset-0north-plugin"
}

Rules

Name Description Severity Enabled Link
ensure_default_tags Ensures a set of required tags are present on all resources or providers. ERROR ✖️ Link
validate_tags Ensures a given set of tags can only have a given range of values. ERROR ✖️ Link

Building the plugin

Clone the repository locally and run the following command:

$ make

You can easily install the built plugin with the following:

$ make install

You can run the built plugin like the following:

$ cat << EOS > .tflint.hcl
plugin "0north-plugin" {
  enabled = true
}
EOS
$ tflint