Issues deleting VPC

0

When I try to delete my VPC, it says it has dependencies, namely, the Network Interface. So I go to the Network Interface, and it says I do not have permissions when I try to detach it, I am the root user. I am getting charged by the hour of use for a VPC that I no longer need.

Jacob
已提問 2 個月前檢視次數 379 次
1 個回答
0
已接受的答案

Hello.

First, we need to find out which resource the network interface is associated with.
For example, are there any EC2s, ALBs, other VPC endpoints or NAT Gateways left?
If you were using something like RDS Proxy, you need to remove RDS Proxy.
Have you ever created a Lambda connected to a VPC?
If these resources remain, the network interface cannot be deleted unless they are deleted.
https://repost.aws/knowledge-center/troubleshoot-dependency-error-delete-vpc

profile picture
專家
已回答 2 個月前
profile picture
專家
已審閱 2 個月前
  • There are no Endpoints, and no NAT Gateways left, I followed that link you suggested and got, the InternetGatewayId, SubnetId, RouteTableId, NetworkAclId, GroupId, and NetworkInterfaceId. What order should I delete these in?

  • Follow the steps below to check the ENI description and see which resource it is linked to. After checking, delete the linked resources.

    1. Open the Amazon EC2 console.
    2. Select the AWS Region that the Amazon VPC is in.
    3. In the navigation pane, under Network Interfaces, search for the VPC ID of the Amazon VPC that you're deleting.
    4. Select the network interface and choose the Details tab.
    5. Review the Description to see which resources the network interface is attached to.
  • Ok, I did that, I can now see the interface ID, VPC ID, status, type, subnetID and Securitygroup, attachmentID. I cannot delete the subnetID or Securitygroup though. Is there something I am missing?

  • Delete the resources using that ENI first.

  • Hi Riku, thanks for your responses, figured it out

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南