amazon-ecs-deploy-task-definition
amazon-ecs-deploy-task-definition copied to clipboard
Error - service missing
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
hi @tdao-usesi , i face same issue. In my case the root cause is because I used wrong ECS cluster name. Hope that help
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"
...
}