amazon-ecs-deploy-task-definition icon indicating copy to clipboard operation
amazon-ecs-deploy-task-definition copied to clipboard

Error - service missing

Open tdao-usesi opened this issue 2 years ago • 2 comments

The logs show that my workflow is failing because my service is missing, but the pawebapp-service is currently running and the status is active. Could there be a problem with permissions?

Error: arn:aws:ecs:us-east-2:***:service/pawebapp-service is MISSING

tdao-usesi avatar Mar 04 '22 16:03 tdao-usesi

hi @tdao-usesi , i face same issue. In my case the root cause is because I used wrong ECS cluster name. Hope that help

belly-qoala avatar Mar 01 '23 04:03 belly-qoala

For me, I was getting this error because the AWS ECS service had not yet been created.

Our DevOps team uses Terraform, and basically they forgot Terraform code for aws_ecs_service:

resource "aws_ecs_service" "<redacted>" {
  name                               = "<redacted>"
  cluster                            = aws_ecs_cluster.this.id
  task_definition                    = aws_ecs_task_definition.<redacted>.arn
  desired_count                      = 1
  launch_type                        = "<redacted>"
  deployment_maximum_percent         = 200
  deployment_minimum_healthy_percent = 100
  enable_execute_command             = true
  propagate_tags                     = "SERVICE"

  ...
}

jamesbraza avatar Nov 01 '23 16:11 jamesbraza