Skip to content

Installation

  • TFLint v0.42+
  • Go v1.25

TODO: This template repository does not contain release binaries, so this installation will not work. Please rewrite for your repository. See the “Building the plugin” section to get this template ruleset working.

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

plugin "aws-meta" {
enabled = true
version = "0.5.1"
source = "github.com/myerscode/tflint-ruleset-aws-meta"
}

Once installed, the plugin will run with default settings. Three rules are enabled by default:

  • aws_meta_hardcoded - Comprehensive ARN validation across all AWS resources
  • aws_service_principal_dns_suffix - Detects dns_suffix interpolation in service principals
  • aws_service_principal_hardcoded - Detects hardcoded DNS suffixes in service principals

After installation, see the Configuration guide for:

  • Configuring and enabling/disabling rules
  • Running TFLint with the plugin
  • Configuration examples for different scenarios