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?

posta un anno fa354 visualizzazioni
1 Risposta
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
ESPERTO
con risposta un anno fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande