Blue/Green deployments in ECS & Service Mesh for services without ELB

0

My customer is asking if a feature to perform Blue/Green deployments in ECS & App/Service Mesh without ELB is in the works. Their questions are as follows:

"...do you know if Blue/Green deployments in ECS for services that are not using a load balancer is in the works? We are evaluating our current Service Mesh and that is a feature we would like to have. Right now it doesn't appear we can do a blue/green deployment for services using App Mesh, they have to use a Load Balancer."

"...when you deploy an ECS service the standard deployment swaps out all of the old task with new ones. You can't do a blue/green or linear deploy over time unless you have a load balancer We would like functionality in this article but for services that use App Mesh: https://docs.aws.amazon.com/codedeploy/latest/userguide/deployment-configurations.html#deployment-configuration-ecs "

"...we're basically looking to see if it's possible to have two versions of the same service deployed at the same time + controlled routing, vs. a rolling deploy that swaps old tasks w new ones"

1 Answer
0
Accepted Answer

This can be achieved in App Mesh using the virtual router and routes. [You can deploy to a new route][1] and test it out, by filtering requests based on a match or header (e.g. requestId). Once happy, you can use your deployment tool or CI/CD pipeline [to move traffic over to the new route][2], by shifting the weighting to each virtual node name.


[1] https://docs.aws.amazon.com/app-mesh/latest/userguide/routes.html

[2] https://docs.aws.amazon.com/cli/latest/reference/appmesh/create-route.html#examples

AWS
Tim C
answered 4 years 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