清理 AWS 实例 - VPC 和互联网网关
Clean up AWS Instances - VPCs and Internet Gateways
我试图通过使用在 EKS 上设置(几次)Jenkins X
jx create cluster eks
命令。执行此操作时我遇到了很多错误,但一直尝试并多次启动该命令。我的最后一个 运行 解决于:
2021-03-06 08:10:56 [✖] AWS::IAM::Role/ServiceRole: CREATE_FAILED – "Resource creation cancelled"
2021-03-06 08:10:56 [✖] AWS::EC2::EIP/NATIP: CREATE_FAILED – "Resource creation cancelled"
2021-03-06 08:10:56 [✖] AWS::EC2::InternetGateway/InternetGateway: CREATE_FAILED – "The maximum number of internet gateways has been reached. (Service: AmazonEC2; Status Code: 400; Error Code: InternetGatewayLimitExceeded; Request ID: 1e661306-cf44-42da-8456-636eee94ab60; Proxy: null)"
2021-03-06 08:10:56 [✖] AWS::EC2::VPC/VPC: CREATE_FAILED – "The maximum number of VPCs has been reached. (Service: AmazonEC2; Status Code: 400; Error Code: VpcLimitExceeded; Request ID: 78098dfb-111a-4f9c-98b4-48ececac6249; Proxy: null)"
好的...是时候清理了
我去了 ClaudFormation 并试图删除所有堆栈。节点已被清除,但由于依赖关系无法删除集群
展开其中一个失败的删除显示:
再次尝试删除堆栈:
单击列表中的 InternetGateway 并尝试将其分离。我收到以下错误:
转到 VPC 控制台取消映射 public 地址我看到我没有任何 NAT 网关或虚拟专用网关
我的问题是:我从哪里开始?如何从 AWS 中删除所有这些资源?
正如 Marcin 在问题评论中所述 - 我首先删除了弹性 IP,然后是 EC2 实例和 NAT,之后其余部分通过云形成成功删除
我试图通过使用在 EKS 上设置(几次)Jenkins X
jx create cluster eks
命令。执行此操作时我遇到了很多错误,但一直尝试并多次启动该命令。我的最后一个 运行 解决于:
2021-03-06 08:10:56 [✖] AWS::IAM::Role/ServiceRole: CREATE_FAILED – "Resource creation cancelled"
2021-03-06 08:10:56 [✖] AWS::EC2::EIP/NATIP: CREATE_FAILED – "Resource creation cancelled"
2021-03-06 08:10:56 [✖] AWS::EC2::InternetGateway/InternetGateway: CREATE_FAILED – "The maximum number of internet gateways has been reached. (Service: AmazonEC2; Status Code: 400; Error Code: InternetGatewayLimitExceeded; Request ID: 1e661306-cf44-42da-8456-636eee94ab60; Proxy: null)"
2021-03-06 08:10:56 [✖] AWS::EC2::VPC/VPC: CREATE_FAILED – "The maximum number of VPCs has been reached. (Service: AmazonEC2; Status Code: 400; Error Code: VpcLimitExceeded; Request ID: 78098dfb-111a-4f9c-98b4-48ececac6249; Proxy: null)"
好的...是时候清理了
我去了 ClaudFormation 并试图删除所有堆栈。节点已被清除,但由于依赖关系无法删除集群
展开其中一个失败的删除显示:
再次尝试删除堆栈:
单击列表中的 InternetGateway 并尝试将其分离。我收到以下错误:
转到 VPC 控制台取消映射 public 地址我看到我没有任何 NAT 网关或虚拟专用网关
我的问题是:我从哪里开始?如何从 AWS 中删除所有这些资源?
正如 Marcin 在问题评论中所述 - 我首先删除了弹性 IP,然后是 EC2 实例和 NAT,之后其余部分通过云形成成功删除