envato / cloudformation_rspec

Test your CloudFormation templates
MIT License
10 stars 0 forks source link

Lint templates as well #7

Closed patrobinson closed 4 years ago

patrobinson commented 5 years ago

CloudFormation Validate only checks if the top level properties are valid It does not check deeply nested parameters against the underlying API Schema cfn-lint, a python tool, does perform deeply nested API Schema validation. But we need to install it separately.

This PR implements using cfn-lint only if it's installed. Otherwise we just issue a warning, but pass the tests.

patrobinson commented 4 years ago

Decided to finish off this PR finally. Got a test in that checks cfn-lint functionality and added a version check.