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.

gefragt vor 2 Jahren786 Aufrufe
1 Antwort
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
EXPERTE
beantwortet vor 2 Jahren
  • 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.

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