Summary
In this chapter, we learned about the macro, a tool that allows us to transform templates. We learned that AWS has its own macros – AWS::Serverless and AWS::Include – and what macros consist of.
To learn about macro processing, we also developed our own macros. Now, we know how and when we can use them.
Macros allow AWS engineers to avoid complexity in templates by moving this complexity to Lambda functions that process the template. The best example of how macros can make templates simple to write and read is the AWS SAM, and we will cover this in more detail in Chapter 11, Deploying Serverless Applications Using AWS SAM.
Later, we reviewed other ways to scale CloudFormation templates by implementing modularity. We explored nested stacks, how they work, and what their downsides are. Later, we explored CloudFormation modules and compared them with Terraform, built our own modules, and deployed the same standard app using modules instead of Transform
macros...