I want to write my cloud formation yml file in a different file and load them separately. It is easy to do it in the serverless framework but I couldn\'t figure it out how t
@amir would be curious to hear from you as to whether you sorted this out. For those searching for this, as far as I've seen, this won't work because nested stacks don't appear to support transforms (yet) in CloudFormation.
This issue mentions that nested stacks can't use transforms like SAM, and in this closed GitHub issue, one of the maintainers of the AWS SAM CLI noted "Closing as we don't yet support Nested Templates in SAM build or any other commands except package. We should create a general issue for this support."
Please give thumbs up to the CF roadmap to ask AWS to support this.