无法分离网络接口 [英] Can't detach network interfaces

查看:38
本文介绍了无法分离网络接口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我做了 AWS misfits 教程,我认为清理就像删除 Cloud Formation 堆栈一样简单.但是,项目未能删除,因此我尝试手动清理它们以协助 Cloud Formation 堆栈删除.

我在尝试分离网络接口时不断收到错误消息(我已登录到 root 帐户):

分离网络接口时出错:

<块引用>

eni-0047gfhfgh8ab0e:您不能管理ela-attach"附件.eni-0f4a46hgfha757e:您无权管理ela-attach"附件.

如果不删除这些,我将无法删除我的 VPC.

由于以下原因,整个堆栈无法删除:以下资源删除失败:[InternetGateway、PublicSubnetTwo、VPC、GatewayAttachement、PublicSubnetOne].

解决方案

我遇到了同样的问题,它给了我以下消息:

这可能是因为正在使用的服务仍在使用网络接口.您可以尝试以下一些事情:

  • 从 API 网关中删除未使用的 VPC 链接
  • 移除未使用的 VPC Endpoint 服务
  • 删除未使用的 NAT 网关
  • 删除未使用的 ECS/EKS 集群
  • 删除未使用的负载平衡器
  • 删除未使用的 EFS 挂载

如果这没有帮助,则底层操作系统有问题/卡住,您应该等待它自行解决或报告.删除 lambda 函数后,我通过 Lambda 函数部署了一个 ENI,但 ENI 卡住了.一段时间后,我能够分离 ENI.

I did the AWS misfits tutorial and I thought the cleanup would be as simple as deleting the Cloud Formation stack. However, items failed to delete so I am trying to clean them up manually to assist the Cloud Formation stack deletion.

I keep getting an error when trying to Detach the network interfaces (I am logged into the root account):

Error detaching network interfaces:

eni-0047gfhfgh8ab0e: You are not allowed to manage 'ela-attach' attachments.
eni-0f4a46hgfha757e: You are not allowed to manage 'ela-attach' attachments.

I am unable to delete my VPC without these being deleted.

The stack as a whole is failing to delete because of the following: The following resource(s) failed to delete: [InternetGateway, PublicSubnetTwo, VPC, GatewayAttachement, PublicSubnetOne].

解决方案

I had the same issue, which gave me the following message:

This could be because there is a service in use which still uses the network interface. You could try some of the following things:

  • Remove unused VPC links from API gateway
  • Remove unused VPC Endpoint services
  • Remove unused NAT gateways
  • Remove unused ECS/EKS clusters
  • Remove unused load balancers
  • Remove unused EFS mounts

If that doesn't help, there is something wrong/stuck on the underlying OS, you should wait for it to resolve by itself or report it. I had an ENI deployed by a Lambda function after deleting the lambda function, the ENI got stuck. After some time I was able to detach the ENI.

这篇关于无法分离网络接口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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