Service Connect + ECS on EC2

0

I tried to set up Service Connect on ECS based on EC2 instances. I created a task definition and service based on that task definition, in service I enabled Service Connect. Service failed to deploy with such a message:

service *serviceName* was unable to place a task because no container instance met all of its requirements. The closest matching container-instance *containerInstanceId* is missing an attribute required by your task. For more information, see the Troubleshooting section of the Amazon ECS Developer Guide.

How could I troubleshoot this issue? (Troubleshooting section of the Amazon ECS Developer Guide does not provide useful information) My container has enough resources and the service started successfully without Service Connect. I tried to check requirements using CLI tool but found nothing:

% ecs-cli check-attributes --task-def *taskDefName*:*rev* --container-instances *taskInstanceId* --cluster *clusterName*
Container Instance                   Missing Attributes
*clusterName*  None

And I am confused about how to understand specific Service Connect requirements, where I can find it in EC2 instance context?

1개 답변
0
수락된 답변

Issue was fixed after updating to latest Amazon ECS-Optilized Amazon Liniux 2 (20230406)

KonH
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인