Listing the container logs

To list the container logs, copy the task ID (the task ID is the container name substring before the /) from the container name, and run the following command:

ecs-cli logs --task-id 0c23d765-88c5-46cd-a317-9db243590c89 –follow

The container logs get displayed as shown in the following screenshot:

Get Amazon Fargate Quick Start Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.