A fargate task schedule via EventBridge fails to launch sometimes with stopReason "Rate limit exceeded while preparing network interface to be attached to instance"

0

Hello all,

Our environment contains:

  • AWS EventBridge event to run an AWS Fargate task once an hour;
  • AWS ECS event and lambda to monitor task status changes

Lately, we sometimes see that the AWS Fargate task fails to start due to the stopReason:

Rate limit exceeded while preparing network interface to be attached to instance

I have checked our quotas, and we are very far (<50 ENIs out of 5000 per region).

  1. What is the cause for this error?
  2. Is a retry (the lambda to RunTask the task) a good workaround?

Thank you in advance, Boris.

1개 답변
0

It sounds as though perhaps there's something in your account/region, unknown to you so far, that is manipulating ENIs frequently. I would recommend enabling CloudTrail and checking the activity logs for EC2 AttachNetworkInterface actions. A high request rate could result in the symptom you're describing.

AWS
전문가
답변함 2년 전
  • You can then make a request for a limit increase via support.

  • I have CloudTrail enabled with API access set to All, and the AttachNetworkInterface event is missing. In the RunTask event with the EventBridge identity, I do see the response: the task's launchType is FARGATE and the ENI's state is PRECREATED.

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

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

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

관련 콘텐츠