NetworkBindings missing from describe_tasks. Bug??

0

Hey All

I'm trying to extract 'containerPort' from 'networkBindings' returned in the describe_tasks api call. I noticed that networkBindings are missing when the task launchType is fargate, even though containerPort is explicitly defined in taskdefintion. The response looks like this : 'networkBindings': []

But if the launchType is ec2, networkBindings are correctly returned : 'networkBindings': [{'bindIP': '0.0.0.0', 'containerPort': 80, 'hostPort': 80, 'protocol': 'tcp'}]

Is this a known bug or am I doing something wrong?

Cheers V

vss
gefragt vor einem Jahr30 Aufrufe
Keine Antworten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen