How do I troubleshoot Amazon ECS tasks on Fargate that stop unexpectedly?

Last updated: 2020-12-17

My Amazon Elastic Container Service (Amazon ECS) tasks on AWS Fargate stop unexpectedly.

Short description

Your tasks can stop when your Amazon ECS container exits due to application issues, resource constraints, or other issues.

Note: If your Fargate tasks are failing to launch and are stopping due to network configuration or resource constraint issues, see Stopped tasks error codes.

Resolution

To identify why your tasks stopped, try the following troubleshooting options: