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

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

问题描述

我正在尝试删除 AWS VPC(非默认 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 db、db 安全组或子网.

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 created security group for d-xxxxxxxxxxx目录控制器".

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天全站免登陆