I've setup one of my services to be deployed to ECS (EC2). I have the service and task definition configured via terraform and then to deploy I'm using Github actions where it seems I need to define the task definition again.
It seems both are required, what would be the correct workflow so I can remove the duplicate task definition?
There's also the problem of once this task definition has been deployed via Github actions, the image has been updated which terraform wants to revert.