I am trying to delete my vpc and I first need to delete my network interface. However, those cannot be deleted because they are still in use. I terminated all my ec2 instances and still, the interfaces are in use and cannot be detached even cannot be forced detached. They are of the type efs mount target.

- Suspect that if you want to delete the ENIs you first need to delete the related EFS mount targets.jarmod– jarmod2020-02-11 00:52:29 +00:00Commented Feb 11, 2020 at 0:52
- @jarmod and how do you do that?koFTT– koFTT2022-10-05 22:47:17 +00:00Commented Oct 5, 2022 at 22:47
- @koFTT see the accepted answer below.jarmod– jarmod2022-10-05 23:00:07 +00:00Commented Oct 5, 2022 at 23:00
Add a comment |
1 Answer
Those interfaces are currently in-use and you cannot delete them directly.
- You can select each interface and check which resources are using right now. As I can see at the description part,
EFSservice and it's not related toEC2services. - Each
EFSfilesystem has a network interface (ENI) per its subnet for communication. If you want to remove those interfaces, you need to delete theEFSfilesystem first.
