Skip to content

I got the error like "Elastic network interface limit is exceeded. Please increase your elastic network interface limit"

0

I recently encountered an issue while using AWS ECS and Glue services: "Elastic network interface limit is exceeded. Please increase your elastic network interface limit."

To investigate, I checked the Network Interfaces section in the AWS console and found a large number of ENIs (Elastic Network Interfaces). These were categorized into two types:

Available – Not currently in use
In-use – Actively attached to resources

I believe that cleaning up the Available ENIs could resolve the issue. However, I have a question: If I delete all "Available" ENIs, could it impact any of my production services?

asked 2 years ago536 views

1 Answer
1

Hello.

ENIs created by ECS or Glue cannot be deleted if they are in use.
It is automatically deleted when the ECS task ends or the Glue job completes.
Therefore, I think it is better to increase the quota as stated in the error message instead of deleting it.
https://docs.aws.amazon.com/vpc/latest/userguide/amazon-vpc-limits.html#vpc-limits-enis

In the case of Glue, the following documentation may be helpful.
https://repost.aws/knowledge-center/glue-specified-subnet-free-addresses

EXPERT

answered 2 years ago

EXPERT

reviewed 2 years ago

  • I noticed that there are 678+ ENIs with the status "Available." For testing purposes, I deleted a Stage Glue ENI that was also in Available status, and everything continued to work as expected.

    My only question is: If I delete all "Available" ENIs, could it impact any of my services?

  • If the Glue job is not running, it is safe to delete all ENIs. However, if you delete an ENI while a job is running (likely, you won't be able to delete one that is associated with the job), it may affect the job's operation.

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.