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?

feita há um ano349 visualizações
1 Resposta
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
ESPECIALISTA
respondido há um ano

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas