Update ECS task definition with new image from ECR
Options are:


Use CodeBuild to push the new image. Make sure the task definition is using the "latest" tag. You'll need to force the deployment of the task definition to pick the new image.
Use CodePipeline to update ECS. It will automatically generate a new task definition revision with the new image and deploy it.