Skip to content

CLOUDFORMATION

Linters

Linter Additional
cfn-lint
CLOUDFORMATION_CFN_LINT
GitHub stars sarif

Linted files

  • File extensions:
    • .yml
    • .yaml
    • .json
  • Detected file content:
    • AWSTemplateFormatVersion
    • (AWS|Alexa|Custom)::

Configuration in MegaLinter

Variable Description Default value
CLOUDFORMATION_PRE_COMMANDS List of bash commands to run before the linters None
CLOUDFORMATION_POST_COMMANDS List of bash commands to run after the linters None
CLOUDFORMATION_FILTER_REGEX_INCLUDE Custom regex including filter
CLOUDFORMATION_FILTER_REGEX_EXCLUDE Custom regex excluding filter