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?

질문됨 일 년 전349회 조회
1개 답변
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
전문가
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인