How to diagnose ECS Fargate task failing to start?
Please go Clusters > Tasks > Details > Containers
You could see some error message around the red rectangle in the figure "error message."
Task detail:
Error message:
I may be late to the party, but you can check the container logs instead of the tasks'.
Go to the failed task -> Details -> Container (at the bottom) and open it. Right under details you'll see a Status reason
.
Getting the reason for failure
Note: if your task runs more than one container, check the 'Status reason' of each container as per the screenshot above, as it can be different between them.
You can get some information regarding the task failure under the 'Events' tab of your service's dashboard. Though the message there aren't very descriptive, they can provide you a vague idea where exactly things are getting wrong.