What is an elastic network interface (ENI) and when would you use it?

Viewed 1066
1 Answers

Decoupling the ENI from the EC2 instance allows you far more flexibility.

You can connect several ENIs to the same EC2 instance and be attached to different subnets, for example:

  • ENI A connected to a public-facing subnet

  • ENI B connected to an internal private subnet

You could, for example, attach an ENI to a running EC2 instance, or you could have it live after the EC2 instance is deleted.

As a form of "cheap" high availability: Attach a ENI to an EC2 instance; if the instance dies launch another one and attach the ENI to it. Traffic flow will only be interrupted for a short period.

There are many scenarios where this flexibility comes in handy.

Related