Skip to content

Commit

Permalink
Add deployment circuit breaker
Browse files Browse the repository at this point in the history
Prevents failed ECS task deployments from continuously failing and requiring manual intervention to resolve.

Signed-off-by: Brian Herrera <briher@amazon.com>
  • Loading branch information
brianherrera committed Jul 20, 2023
1 parent 91e1073 commit b99e805
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cdk/jenkins_server/jenkins_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,8 @@ def _create_ecs(self):
assign_public_ip=True,
platform_version=ecs.FargatePlatformVersion.VERSION1_4,
cluster=cluster,
desired_count=ecs_config['service']['desired_count']
desired_count=ecs_config['service']['desired_count'],
circuit_breaker=ecs.DeploymentCircuitBreaker(rollback=True)
)

self.file_system.connections.allow_default_port_from(fargate_service)
Expand Down

0 comments on commit b99e805

Please sign in to comment.