# Ecs blue/green deployment

**URL:** <https://forum.serverless.com/t/ecs-blue-green-deployment/12158>\
**Category:** Serverless Framework\
**Tags:** aws, cloudformation\
**Created:** [July 30, 2020, 3:02pm UTC](https://forum.serverless.com/t/ecs-blue-green-deployment/12158 "2020-07-30T15:02:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![roman](https://avatars.discourse-cdn.com/v4/letter/r/ed8c4c/32.png) [@roman](https://forum.serverless.com/u/roman)\
**Post date:** [July 30, 2020, 3:02pm UTC](https://forum.serverless.com/t/ecs-blue-green-deployment/12158/1 "2020-07-30T15:02:11Z")

</div>

Hi,  
I`m wondering is there a way to perform ecs blue/green deployments via codedeploy using serverless.  
[https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/blue-green.html](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/blue-green.html)  
I am using additional plugin to deploy ecs-fargate cluster.  
The cloudformation template should include hooks and transform blocks outside resources block.  
Is there a way to add hooks and transform blocks into the created cloudformation template during the deploy?  
Thanks.
