The caveat here seems to be when a common element is referenced twice in the same template. If App2 is removed from the source, the output ends up as expected. If the element is included more than once, it generates YAML aliases which then create invalid CFN templates (CFN doesn't support YAML aliases).
I suspect as part of #228, this particular use case got broken. Example templates that replicate the issue;
stack.yml
common.yml
Expected output:
Actual output:
The caveat here seems to be when a common element is referenced twice in the same template. If
App2
is removed from the source, the output ends up as expected. If the element is included more than once, it generates YAML aliases which then create invalid CFN templates (CFN doesn't support YAML aliases).