issue in deleting VPC and network interface

后端 未结 8 1739
太阳男子
太阳男子 2020-12-29 19:54

I am trying to delete aws vpc (a non default one). I am getting error that \"We could not delete the following VPC (vpc-xxxxxxx (xx.xx.xx.x/16)) Network interface \'eni-xxxx

相关标签:
8条回答
  • 2020-12-29 20:29

    As @karimtabet said, the VPC I was unable to delete was still assigned to an active RDS instance. after removing this RDS instance, I was able to delete the VPC.

    0 讨论(0)
  • 2020-12-29 20:29

    Check if you have any EFS instances or S3 buckets with versioning turned on or cross-domain replication (this is the one that got me recently).

    0 讨论(0)
  • 2020-12-29 20:33

    You were right..It was ECS issue in my case. Not letting me delete my ENIs saying I dont have the permissions. I had already deregistered my ECS task definition but still It was not letting me delete resources like VPC, ENIs created by ECS.

    I had to update the version of task definition under ECS using same resources as previous definition version and then I deleted that new service and then deleted the clustere.

    With clustere, it deleted all resource like VPC, ENIs which it was not letting me delete earlier.

    I then dergistered second version of task definition. I had two inactive tasks definitions for a monent and then one task definitions disappeared..now only one is there in inactive state.

    0 讨论(0)
  • 2020-12-29 20:36

    That network interface could be connected to a security group which is then connected to another Amazon product like ElastiCache (or anything). It's connected to something which may be connected to something else.

    0 讨论(0)
  • 2020-12-29 20:38

    I solve this by deleting active load balancer that was attached to the ENIs. You can check active load balancers on EC2 > Load Balancing > Load Balancers

    0 讨论(0)
  • 2020-12-29 20:39

    A running ECS task could be an issue, try to stop/delete the same. https://forums.aws.amazon.com/thread.jspa?threadID=114301

    0 讨论(0)
提交回复
热议问题