1

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?

Mike
  • 2,120
  • 1
  • 23
  • 40
  • "if the service has been deleted" -> Why is it deleted? If your action trigger is on CodePipeline, you can deploy a Cloudformation template to create the service and start it. – Brian Dec 18 '22 at 09:26
  • It had been deleted when it was misbehaving. I'll look into that, thanks. – Mike Dec 19 '22 at 03:34

0 Answers0