Troubleshoot the processed template - AWS CloudFormation (original) (raw)

When using a macro, the processed template can be found in the CloudFormation console.

The stage of a template indicates its processing status:

For troubleshooting, use the processed template. If a template doesn't reference macros, the original and processed templates are identical.

For more information, see View stack information from the CloudFormation console.

To use the AWS CLI to get the processed template, use the get-template command.

Size limitation

The maximum size for a processed stack template is 51,200 bytes when passed directly into a CreateStack, UpdateStack, orValidateTemplate request, or 1 MB when passed as an S3 object using an Amazon S3 template URL. However, during processing CloudFormation updates the temporary state of the template as it serially processes the macros contained in the template. Because of this, the size of the template during processing may temporarily exceed the allowed size of a fully-processed template. CloudFormation allows some buffer for these in-process templates. However, you should design your templates and macros keeping in mind the maximum allowed size for a processed stack template.

If CloudFormation returns a Transformation data limit exceeded error while processing your template, your template has exceeded the maximum template size CloudFormation allows during processing.

To resolve this issue, consider doing the following: