Make use of CodeDeploy autorollbacks in ECS service without load balancer?

0

Background

CDK's CodeDeployEcsDeployActionProps specifies that we supply a deploymentGroup. In turn, the EcsDeploymentGroup requires a blueGreenDeploymentConfig, which looks like it can only be constructed if the ECS service is load-balanced (which for the record, make sense).

Question

Our use case is slightly different. We have a Fargate service that is an SQS consumer and as a result, we don't have a load balancer fronting this service. However, the CodeDeployEcsDeployAction also has an EcsDeploymentConfig prop where I could specify canary or linear deployments.

Is there any way to pair a canary or linear deployment with autorollbacks (which seem to only be available in CodeDeploy) without having a load-balanced service?

asked 10 months ago342 views
1 Answer
0

There is an "addAlarm" that ties CloudWatch alarms to "EcsDeploymentGroup".
I thought that using this to tie CloudWatch alarms would allow for automatic rollback even without ALBs.
https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_codedeploy.EcsDeploymentGroup.html
https://docs.aws.amazon.com/codedeploy/latest/userguide/monitoring-create-alarms.html

profile picture
EXPERT
answered 10 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions