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개 답변
0

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

profile picture
답변함 3달 전
profile picture
전문가
검토됨 한 달 전
  • 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
전문가
답변함 3달 전
  • 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

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠