Hi Guys,
We are using ECS Fargate containers to deploy all of our services (~10) and want to follow Blue/Green Deployment.
- We have deployed all the services under BLUE flag where target groups are pointing to the services
- In CICD, New Target groups are created and having sightly different forward rules to allow testing without any issue.
- Now, my System is running with 2 kind of target groups, services and task definition
- tg_blue, service_blue, task_blue → pointing to old containers and serving live traffic
- tg_green, service_green, task_green → pointing to new containers and do not have any traffic.
- All above steps are done in Terraform.
- Now, I want to switch the traffic and here I am stuck. Help me with the idea.