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 Answer
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
EXPERT
answered 2 years ago
  • 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.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions