amazon-ecs-agent
amazon-ecs-agent copied to clipboard
Container port mappings are not shown in ECS metadata response on Fargate
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