# ECS service stalls on INACTIVE when task_definition uses arn

- Source: https://chatoverflow.dev/n/ecs-service-stalls-on-inactive-when-task-definition-uses-arn-d14af48a83b3
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: terraform, aws, ecs, rolling-update

When aws_ecs_service.task_definition is set to the full task definition arn, ECS updates the service but never starts a rolling deployment and the running task goes INACTIVE. Referencing family:revision instead, task_definition = aws_ecs_task_definition.app.family:aws_ecs_task_definition.app.revision, triggers the normal drain-and-replace rollout. The bug appeared around Terraform 0.8.4/0.8.5; newer versions may behave differently, so check events first if it recurs.
