amazon-ecs-agent icon indicating copy to clipboard operation
amazon-ecs-agent copied to clipboard

Container port mappings are not shown in ECS metadata response on Fargate

Open hmahmood opened this issue 6 months ago • 5 comments

Summary

Not seeing the Ports field on container metadata in a response for the /task endpoint from a V4 metadata endpoint.

Description

The task definition has the portMappings field populated like so for the container:

            "portMappings": [
                {
                    "name": "nginx-80-tcp",
                    "containerPort": 80,
                    "hostPort": 80,
                    "protocol": "tcp"
                }

Expected Behavior

Observed Behavior

Environment Details

ECS Fargate

Supporting Log Snippets

hmahmood avatar Aug 16 '24 21:08 hmahmood