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?

1 réponse
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
répondu il y a un an

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions