You use the deploymentConfig property to control how CloudFormation performs stack create and update operations.
The deploymentConfig property is an object with two optional properties: mode and disableRollback.
The mode property specifies the deployment mode. It accepts these values:
STANDARD - CloudFormation waits until resources are ready to serve traffic before completing the operation. This is the default.EXPRESS - CloudFormation completes the operation as soon as the resource configuration is applied, without waiting for the resources to become ready. The resources continue becoming ready in the background. See the AWS announcement for more information.The disableRollback property specifies whether CloudFormation should roll back the stack if the operation fails. The default is false.
Deploying stacks in express mode:
Deploying stacks in express mode with rollback disabled:
Disabling rollback while using the standard deployment mode:
When rollback is disabled and a stack operation fails, CloudFormation leaves the stack and its resources in the failed state instead of rolling them back. This makes it easier to troubleshoot the failure.
CREATE_FAILED status. On the next deployment, Takomo deletes the stack and creates it again.UPDATE_FAILED status. On the next deployment, Takomo updates the stack. You can also undeploy a stack in this status.deploymentConfig property can be defined in:
Unlike many other object properties, deploymentConfig is not overridden as a whole. The mode and disableRollback properties are resolved separately, so you can override just one of them and inherit the other.
When deploymentConfig property is defined in a stack group configuration file:
When deploymentConfig property is defined in a blueprint configuration file:
When deploymentConfig property is defined in a stack configuration file:
Given this stack group configuration:
and this stack configuration:
The stack is deployed in express mode with rollback disabled.
The deploymentConfig property must satisfy these requirements:
mode and disableRollbackSTANDARD or EXPRESS