Categorygithub.com/0north/tflint-ruleset-0north-plugin
repositorypackage
1.2.1
Repository: https://github.com/0north/tflint-ruleset-0north-plugin.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author

# README

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

NameDescriptionSeverityEnabledLink
ensure_default_tagsEnsures a set of required tags are present on all resources or providers.ERROR✖️Link
validate_tagsEnsures 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