Skip to content

0north/tflint-ruleset-0north-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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