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
已提问 1 年前30 查看次数
没有答案

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则

相关内容