Menu
AWS CloudFormation
User Guide (API Version 2010-05-15)

Transform

The Transform section is optional and specifies a transform that AWS CloudFormation uses to process your template. AWS CloudFormation transforms are statements that condense and simplify template authoring. For example, you can simplify a resource declaration that might have taken multiple lines into a single line.

Transforms are declarative statements within AWS CloudFormation templates that tell AWS CloudFormation how to process your template. Transform builds on the simple, declarative language of AWS CloudFormation with a powerful macro system. You can create AWS CloudFormation transformations to simplify the expression of AWS infrastructure as code. In doing so, transforms help simplify how you write templates.

AWS::Serverless

An AWS::Serverless transform is a specific version of the AWS Serverless Application Model (AWS SAM). This model defines the AWS SAM syntax that you can use and how AWS CloudFormation processes it. When you create a change set, AWS CloudFormation resolves all Transform functions.

For more information about serverless applications and the model, see Deploying Lambda-based Applications in the AWS Lambda Developer Guide.

AWS::Include

You can also use the AWS::Include transform to work with template snippets that are stored separately from the main AWS CloudFormation template. You can insert those snippets into your main template when Creating a Change Set or Updating Stacks Using Change Sets.