The “Essential container in task exited” message with an exit code of 0 indicates that the Fargate task completed successfully. This is expected behavior for a one-off or batch task.
If CloudWatch logs only show output and no errors, it’s a sign the task is completing as intended.
If your task is meant to run to completion (e.g., batch processing, script execution), this message is perfectly normal, and there’s nothing to worry about.