AWS CloudFormation Starter/`null` Template
If the CloudFormation create has an error, the CloudFormation doesn’t roll back so it has to be deleted and recreated. To avoid multiple initial create/delete, the best approach is to use a null
CloudFormation. An example is below:
AWSTemplateFormatVersion: 2010-09-09
Description: CloudFormation Starter
Conditions:
Never: !Equals [ a, b ]
Resources:
NullResource:
Type: Custom::Null
Condition: Never