DeploymentCircuitBreaker

class aws_cdk.aws_ecs.DeploymentCircuitBreaker(*, enable=None, rollback=None)

Bases: object

The deployment circuit breaker to use for the service.

Parameters:
  • enable (Optional[bool]) – Whether to enable the deployment circuit breaker logic. Default: true

  • rollback (Optional[bool]) – Whether to enable rollback on deployment failure. Default: false

ExampleMetadata:

infused

Example:

# cluster: ecs.Cluster
# task_definition: ecs.TaskDefinition

service = ecs.FargateService(self, "Service",
    cluster=cluster,
    task_definition=task_definition,
    circuit_breaker=ecs.DeploymentCircuitBreaker(
        enable=True,
        rollback=True
    )
)

Attributes

enable

Whether to enable the deployment circuit breaker logic.

Default:

true

rollback

Whether to enable rollback on deployment failure.

Default:

false