Chapter 8

Dynamically Rendering the Template Using Template Macros

Sometimes when we work with templates, we want to dynamically assign values to resources or alter the template quickly during stack operations.

One of the most well-known template macros is SAM or the Serverless Application Model, which is a simplified CloudFormation template for serverless applications (we will cover SAM in the next few chapters). Another well-known macro is AWS::Include, which allows us to append the CloudFormation template with boilerplate snippets.

In this chapter, we will learn about template macros and their use cases, and we will develop our own macros.

In this chapter, we will cover the following topics:

  • Understanding use cases of template macros
  • Introducing ...

Get Mastering AWS CloudFormation now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.