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
gefragt vor 2 Monaten379 Aufrufe
1 Antwort
0
Akzeptierte Antwort

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
EXPERTE
beantwortet vor 2 Monaten
profile picture
EXPERTE
überprüft vor 2 Monaten
  • 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

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen