删除VPC和网络接口时出现问题 [英] issue in deleting VPC and network interface

查看:779
本文介绍了删除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也具有

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.

推荐答案

检查两件事。


  • 如果您有在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天全站免登陆