title: AWS CodeDeploy(Blue/Green) Deployment Group with Two Load balancers
body: <p>My architecture goes like,</p>
  <pre><code>Internal ALB -&gt; Target Group 1 
                                 \ 
                                   -&gt; Fargate Task (using ECS Service)
                                 /
  External ALB -&gt; Target Group 2 
  </code></pre>
  <p>This ECS service runs completely fine. I am able to hit the task using both the load balancers, for internal and external traffic.</p>
  <p>I want to create a Blue/Green CodeDeploy Deployment Group corresponding to a CodeDeploy Application, that will successfully deploy the service whenever required. I am using CLI for all of this.</p>
  <p>The problem is that since I am using two load balancers, I cannot associate both of them to create the CodeDeploy Deployment Group. Are there any pointers on how I can create this deployment group?</p>
  <p>Also, I want to use this deployment group to create a pipeline so that the application can be deployed every time there is a code change.</p>
  <p>Overall, I want to achieve that a service should be accessed internally within the VPC using internal ALB, and also externally using its public ALB. So I created both ALBs and created listeners for those ALBs, and then those target groups are attached to the ECS Service.</p>