Skip to content

Commit

Permalink
Add ECS deployment circuit breaker #31
Browse files Browse the repository at this point in the history
  • Loading branch information
brianherrera authored Jul 21, 2023
2 parents 91e1073 + b99e805 commit c8cf72d
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 c8cf72d

Please sign in to comment.