Posted On: Mar 14, 2024

AWS CloudFormation improves its deployment experience to validate customer stack operation upfront for invalid resource property errors. Customers get early feedback that their stack operation will fail due to issues such as spelling errors in their template. With this launch, customers will be able to fail fast and minimize the steps required for a successful stack operation.

When you create or update an AWS CloudFormation stack, your stack can fail due to invalid resource property values or unsupported resource property names. For example, you are trying to deploy an S3 bucket with a misspelled property name, or trying to use an EC2 property such as SecurityGroups under S3 bucket resource properties. Previously, customers waited until the resource being provisioned had such an error, causing the stack operation to fail. Customers would repeat this process until all resources were successfully deployed without invalid resource property errors. With this new experience, CloudFormation validates your stack operation prior to deploying the first resource and provides error messages upfront. You will get this information as resource-level stack events with error details as the status reason.

This feature is available in AWS Regions where AWS CloudFormation is available. Refer to the AWS Region table for details. Visit our user guide to learn how to troubleshoot common CloudFormation operation errors.