Summary
In this chapter, we have learned about the macro, a tool that allows us to transform templates. We've 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 the templates by taking this complexity over and solving it using Lambda functions. The best example of how macros can make templates simple to write and read is the AWS Serverless Application Model (SAM), and we will cover this in more detail in Chapter 10, Deploying Serverless Applications Using AWS SAM.
In the next chapter, we will learn about AWS—Cloud Development Kit. CDK introduces a completely different way of creating and managing CloudFormation stacks and allows AWS engineers to programmatically declare infrastructure.
See you in the next chapter!