title: CodePipeline : What is taskdef.json and appsec.yaml purpose?
body: <p>The whole point of using CodePipeline for me is to deploy automatically an ECS Service (Blue / Green deployment), with CodeDeploy.</p>
  <p>CodePipeline have the following stages :</p>
  <ul>
  <li><p>&quot;Source&quot; containing Bitbucket webhook.</p>
  </li>
  <li><p>&quot;Build&quot; containing CodeBuild step (that build and push a docker image on ECR).</p>
  </li>
  <li><p>&quot;Deploy&quot; containing ECS (Blue / Green) that will use CodeDeploy to deploy the designed service.</p>
  </li>
  </ul>
  <p>What i don't understand, is the purpose of taskdef.json and appsec.yaml in my case.</p>
  <p>What i only do manually (so without CodePipeline currently) is redeploying ECS service with the same task definition. I don't really have to update my task definition each time, since the docker image that i push always have the same tag (staging or production), all other one are untagged, so there is only one available.</p>
  <p>So why is it mandatory to input those files, even if when i do it manually i don't change a thing, and just click on Next continually ?</p>
  <p>And also, how can i include it from the CodeBuild step ?</p>