Jinja2 Support for cfn-lint #4340
Unanswered
charlieolinsky
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi all, wanted to ask this question to gauge where the current thinking is on this topic.
Context:
I have been working with a repository of IaC patterns written primarily in CloudFormation. Naturally, I wanted to use a good linter to enhance code-quality.
The problem I ran into is that the repository is not purely written in CloudFormation YAML, there are numerous files that also contain Jinja2 syntax. It appears to me that cfn-lint is not prepared to handle these files, as the Jinja2 template syntax is flagged in the linter.
I have read online that the recommendation is to first render the templates into pure CloudFormation and then run cfn-lint, which makes sense, but this repository is incredibly large and does not have proper testing values in place that I can render with.
Questions:
Curious to hear your thoughts. Thanks!
All reactions