The whole point of using CodePipeline for me is to deploy automatically an ECS Service (Blue / Green deployment), with CodeDeploy.
CodePipeline have the following stages :
"Source" containing Bitbucket webhook.
"Build" containing CodeBuild step (that build and push a docker image on ECR).
"Deploy" containing ECS (Blue / Green) that will use CodeDeploy to deploy the designed service.
What i don't understand, is the purpose of taskdef.json and appsec.yaml in my case.
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.
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 ?
And also, how can i include it from the CodeBuild step ?
