Amazon ECS task metadata endpoint - Amazon ECS

Amazon ECS task metadata endpoint

Important

If you are using Amazon ECS tasks hosted on Amazon EC2 instances, see Amazon ECS task metadata endpoint in the Amazon Elastic Container Service Developer Guide.

Amazon ECS on Fargate provides a method to retrieve various metadata, network metrics, and Docker stats about your containers and the tasks they are a part of. This is referred to as the task metadata endpoint. The following task metadata endpoint versions are available for Amazon ECS on Fargate tasks:

  • Task metadata endpoint version 4 – Available for tasks that use platform version 1.4.0 or later.

  • Task metadata endpoint version 3 – Available for tasks that use platform version 1.1.0 or later.

All containers belonging to tasks that are launched with the awsvpc network mode receive a local IPv4 address within a predefined link-local address range. When a container queries the metadata endpoint, the container agent can determine which task the container belongs to based on its unique IP address, and metadata and stats for that task are returned.