Skip to content

champgm/cloudformation-yaml-validator

Repository files navigation

Cloudformation YAML Validator

Version Installs Travis

Features

This extension focuses on reference errors in Cloudformation YAML files and their sub-stack resources. It is best used together with a linting plugin like vscode-cfn-lint, which can warn you about errors specific to AWS resources.

Here are some things this extension will warn you about:

  • !Refs to nonexistent values
  • !Subs with references to nonexistent values
  • !Ifs referencing conditions that do not exist
  • !FindInMaps referencing maps that do not exist
  • AWS::CloudFormation::Stack parameters (with and without default values) missing values

image

Triggers

The extension should be triggered automatically when loading YAML or YML files and it should avoid parsing non-cloudformation YAML files.

To run it manually, open the command pallet and select "Cloud Formation YAML Validator: Validate YAML"

To recursively search in sub stacks, open the command pallet and select "Cloud Formation YAML Validator: Validate YAML, recurse into sub stacks"

Known Issues

Known issues can be found here: https://github.com/champgm/cloudformation-yaml-validator/issues

Please log more if you find any.