title: Deployment group's ECS service must be configured for a CODE_DEPLOY deployment controller
body: <p>I've encountered following error when I'm trying to create Deployment Group for ECS Cluster in Code Deploy. I've created IAM that based on CodeDeploy ECS and its policy:</p>
  
  <pre><code>{
      "Version": "2012-10-17",
      "Statement": [
          {
              "Action": [
                  "ecs:DescribeServices",
                  "ecs:CreateTaskSet",
                  "ecs:UpdateServicePrimaryTaskSet",
                  "ecs:DeleteTaskSet",
                  "elasticloadbalancing:DescribeTargetGroups",
                  "elasticloadbalancing:DescribeListeners",
                  "elasticloadbalancing:ModifyListener",
                  "elasticloadbalancing:DescribeRules",
                  "elasticloadbalancing:ModifyRule",
                  "lambda:InvokeFunction",
                  "cloudwatch:DescribeAlarms",
                  "sns:Publish",
                  "s3:GetObject",
                  "s3:GetObjectMetadata",
                  "s3:GetObjectVersion"
              ],
              "Resource": "*",
              "Effect": "Allow"
          },
          {
              "Action": [
                  "iam:PassRole"
              ],
              "Effect": "Allow",
              "Resource": "*",
              "Condition": {
                  "StringLike": {
                      "iam:PassedToService": [
                          "ecs-tasks.amazonaws.com"
                      ]
                  }
              }
          }
      ]
  }
  </code></pre>
  
  <p>Please let me know when I made mistake?</p>
  
  <p><a href="https://i.stack.imgur.com/fgzER.png" rel="noreferrer"><img src="https://i.stack.imgur.com/fgzER.png" alt="enter image description here"></a></p>