Think I've solved using Lambda.
The trick was to wait an healthy status during the deploy process.
On my appspec.yaml I've declared a function to be called AfterAllowTestTraffic
This function will wait for the healthy target on the green trunk.
Find below the functions used.
How to set the Load balancer service to route a certain host to a fargate task?Accepted Answerasked 5 months ago
AWS Load Balancer Controller deployment to force creation of application Load Balancer?asked 7 months ago
Mixing ECS Fargate IPV6 and Network Load Balancersasked 5 months ago
Cannot select a target group with alb target type when creating an application load balancerAccepted Answerasked 5 months ago
Application Load balancer with ECSAccepted Answerasked 25 days ago
Blue/Green on Fargate Load Balancer swap Target Group after deployasked 2 years ago
How to make HTTPS ALB that targets other TCP port of a fargate service?
Is it possible to connect aws fargate with task ip instead of load balancer DNS?Accepted Answerasked 4 months ago
Application load balancer blocks websocket connections?
Application Load Balancer Error 503asked 2 hours ago