-
Notifications
You must be signed in to change notification settings - Fork 86
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
Support Template Substitutions in YAML files, regardless #312
Comments
Slight nuance differs from #116 -- rather than properly support it with whatever that entails, I'm just looking for it to stuff the contents of another file (verbatim is fine?) into the main template. I'm hoping that current functionality will be sufficient for my purposes -- just get the JSON string from another file into the YAML, although being able to transclude other YAML snippets would be nice too. |
Yes that would solve my specific issue. I still think transclusion regardless of template format would be a neat feature. Ideally something like how Serverless Framework variables can pull from other files, but without bothering to parse the external file for specifics, just embed the file contents where requested. With this you could split deployment files into separate components (like reusing a file declaring all the Powertools environment variables instead of copy-pasting each time) |
For YAML parsing, we are relying on Yaml.NET and that package doesn't have support for JSONPath or it's equivalent. Hence, closing this issue. |
Comments on closed issues are hard for our team to see. |
Describe the feature
Just like #116 would like to use template substitutions with YAML configuration files.
Use Case
Specifically trying to transclude Step Function State Machine
DefinitionString
which just needs to smush the contents of a separate JSON file into the YAML, no special processing necessary.Proposed Solution
Remove the templatebody type check, and just warn if it's not JSON. i.e. make it obvious enough to the user that it's their own fault for trying it.
Other Information
No response
Acknowledgements
Targeted .NET platform
.NET 6+
CLI extension version
Environment details (OS name and version, etc.)
Windows 10
The text was updated successfully, but these errors were encountered: