I'm trying to deploy a dotnet service to a cluster in ECS using a git action on a pull request.
Everything works fine up to the aws-actions/amazon-ecs-deploy-task-definition@v1 step which fails giving an error of "Service is INACTIVE".
In this case there is no running service attached to the task definition. If I create the service manually it runs fine and any subsequent deployments work, but if the service has been deleted the amazon-ecs-deploy-task-definition step appears unable to recreate the service and start it.
Any idea how I can force it to create the service and start it?