AWS::ECS::Service DeploymentCircuitBreaker - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

AWS::ECS::Service DeploymentCircuitBreaker


The deployment circuit breaker can only be used for services using the rolling update (ECS) deployment type.

The deployment circuit breaker determines whether a service deployment will fail if the service can't reach a steady state. If enabled, a service deployment will transition to a failed state and stop launching new tasks. You can also configure Amazon ECS to roll back your service to the last completed deployment after a failure. For more information, see Rolling update in the Amazon Elastic Container Service Developer Guide.


To declare this entity in your Amazon CloudFormation template, use the following syntax:


{ "Enable" : Boolean, "Rollback" : Boolean }


Enable: Boolean Rollback: Boolean



Determines whether to use the deployment circuit breaker logic for the service.

Required: Yes

Type: Boolean

Update requires: No interruption


Determines whether to configure Amazon ECS to roll back the service if a service deployment fails. If rollback is on, when a service deployment fails, the service is rolled back to the last deployment that completed successfully.

Required: Yes

Type: Boolean

Update requires: No interruption