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.

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ