Closed rschick closed 7 years ago
Thank you very much for reporting and fixing this issue. I have made some changes:
context
property. This makes the API more consistent as !Refs would not be supported which is really the primary use case for variables in includes. Fn::Sub supports custom variables out of the box so I think that should be the default.Let me know what you think and I will cut a release of you are happy!
released
I've been having problems with doing this style of include for UserData:
It fails validation with:
It looks like an issue with CF. The output looks fine:
I am currently working around this by including the userdata script as a string literal in my YAML:
But I'd like to be able to !Include it instead.
I was thinking of making a PR to add another type of include that wouldn't use the Fn::Join method, and instead just join the script with newlines into a single string. I'll put something together and let you know if it works.
Thanks for the great tool!