Posted On: Apr 16, 2021

AWS CloudFormation StackSets extend the functionality of stacks by enabling you to create, update, or delete stacks across multiple AWS accounts and Regions with a single operation. We are now announcing the support for CloudFormation Macros and transforms in templates that are used to create a stack set. AWS CloudFormation macros perform custom processing on CloudFormation templates from simple actions such as find-and-replace, to helping transform the entire template. CloudFormation macros use the same technology that powers AWS::Include and AWS::Serverless transforms. CloudFormation transforms help simplify template authoring by condensing the expression of AWS infrastructure as code and enabling reuse of template components.

Previously, you could not use transforms in the CloudFormation templates provided to create a stack set. With this launch, you can use transforms such as AWS::Include and AWS::Serverless, or use CloudFormation macros to create your own custom transforms to process your templates used for stack set creation. For example, you can create common string functions for templates or define short hand syntax for common CloudFormation resources. For more information, please refer to macros examples.

To learn more about CloudFormation macros support within StackSets, please visit AWS CloudFormation StackSets documentation.

CloudFormation macros support for StackSets is currently available only for StackSets created using the self-managed Permission model. CloudFormation macros are available in all AWS Regions where AWS Lambda is currently available. For a full list of AWS Regions where AWS Lambda is available, please visit our Region table.