尝试删除VPC和网络接口时出现的问题 [英] Issue when trying to delete VPC and Network Interface

查看:158
本文介绍了尝试删除VPC和网络接口时出现的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试删除AWS VPC(非默认值).我收到以下错误消息:我们无法删除以下VPC(vpc-xxxxxxx(xx.xx.xx.x/16))网络接口"eni-xxxxxx"当前正在使用中.(服务:AmazonEC2;状态代码:400;错误代码:InvalidParameterValue;请求ID:xxxxxx-dd86-47c8-98cd-xxxxxxxxxxx)".

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-xxxxxx' is currently in use. (Service: AmazonEC2; Status Code: 400; Error Code: InvalidParameterValue; Request ID: xxxxxx-dd86-47c8-98cd-xxxxxxxxxxx)".

当我尝试删除相关的网络接口时,出现错误信息"eni-xxxxxxx:您无权访问指定的资源."

When I tried deleting the related Network Interface, I got error "eni-xxxxxxx: You do not have permission to access the specified resource."

存在与NI(网络接口)关联的安全组.有与NI关联的子网.没有EC2实例-所有实例均已终止.没有VPC端点.没有RDS数据库,数据库安全组或子网.

There are security groups associated with the NI (network interface). There are subnets associated with the NI. There are no EC2 instances - all are terminated. There are no VPC endpoints. There are no RDS db, db security group or subnets.

对于EC2 SG(安全组),我在尝试删除时收到权限被拒绝的错误消息(甚至是针对非默认VPC的非默认SG.此SG的描述为"AWS为d-xxxxxxxxxx创建的安全组"目录控制器".

For EC2 SG (security groups), I am getting permission denied error message while trying to delete (even the non default SG against the non-default VPC. This SG has description of "AWS created security group for d-xxxxxxxxxx directory controllers".

对于子网,我无法删除它们,因为它们与上述NI相关联.

For subnets, I am not able to delete them because they are associated with the above mentioned NI.

有人可以帮忙吗?我有一个免费的帐户,因此甚至没有技术支持,或者都无法在AWS论坛中发布新主题(获取错误消息-您的帐户尚未准备好发布消息.请稍后再试).我担心这是因为我有一个免费会员帐户.

Can someone help? I have a free tier account and hence even dont have technical support or neither able to post new thread in aws forums (getting error message - Your account is not ready for posting messages yet. Please try again later). I fear this is because I have a free tier account.

推荐答案

检查2件事.

  • 如果您具有在VPC中创建的VPC弹性IP地址,则尝试删除.
  • 检查是否在VPC中创建了AWS ELB.

删除上面两个资源(如果存在),则可以删除VPC.

Delete above two resources if present then you will be able to delete the VPC.

这篇关于尝试删除VPC和网络接口时出现的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆