-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Standardize ".cfn" file extension for CloudFormation templates #45
Comments
|
I like it! So:
|
@iainelder Thank you very much for your feedback! Since this repository is focused on resource coverage, I'm transferring this issue over to a new GitHub repository dedicated to CloudFormation template language issues. |
I love the idea of ".cfn.yaml". That would make a lot of our automations much simpler. And perhaps this is heretical, but this feels like a first step to treating the "Cloud Formation template language" as its own first-class programming language (CFTL?), which just happens to have a built-in module for managing AWS resources... |
Resource Name
Template files of all formats.
Details
From CloudFormation concepts:
The lack of a standard file extension makes it more difficult to configure tools like pre-commit to run checks such as cfn-lint only on CloudFormation files.
Current workarounds require you to use a file path filter to identify where the CloudFormation files are. This can get tricky when there are other JSON or YAML files in the project and when the CloudFormation files are stored in different places.
I propose ".cfn" as a standard file extension to make it easy to identify CloudFormation files.
This ought to be backwards compatible since the existing tooling can continue to accept files with any name and depend on the content instead.
See pre-commit/identify#281 for context.
The text was updated successfully, but these errors were encountered: