Why am I unable to delete my VPC, network inteface, subnets and Internet gateway?

0

Few days back I deployed a devops project on aws using EKS for which I used EC2 instances, VPC. I actually launched these services using teraform on Vs Code. Since this is the first time I'm using EKS, after completing the project instead of shutting down all the services from terraform using different commands I first terminated EC2 instances manually due to which I'm unable to delete these network related services from terraform. I deleted EKS cluster also manually but I'm unable to delete VPC beauce its showing that network interfaces are in use and if I try to delete network interface its also not deleting and the same problem with subnets and Internet gateway. The problem is they all are inter-related due to which I'm unable to delete anything. Please someone guide me as the bills are generating dialy because of elastic Ip addresses which are attached to VPC i'm dropping screenshots for reference VPC Network Interface Internet Gateway Subnet

2 Respuestas
0

Detach the internet gateway from the VPC first, (its in the dropdown) before trying to delete the Internet gateway

profile picture
respondido hace 3 meses
profile picture
EXPERTO
revisado hace un mes
  • I tried detaching it but its showing - detaching internet gateway is unsuccessful because it has some mapped public address(es). Please unmap those public addresses before detaching the gateway. I really wanted to post the screenshot but i think its not possible to do it in a comment

0

Have you tried detaching the Internet Gateway from the VPC before you delete it?

profile pictureAWS
EXPERTO
respondido hace 3 meses
  • I tried detaching it but its showing - detaching internet gateway is unsuccessful because it has some mapped public address(es). Please unmap those public addresses before detaching the gateway. I really wanted to post the screenshot but i think its not possible to do it in a comment

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas