Chapter 8: Dynamically Rendering the Template Using Template Macros
- JSON. It is either a piece of a template or a full template, depending on whether the
Transform
section is declared or theFn::Transform
function is being used. - No, because a macro and its function must be in the same Region.
- The stack operation will be considered as Failed and CloudFormation will start rolling back.
- Yes, but you need to be aware of the macro evaluation order (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-macros.html#template-macros-use).