amazon-web-services - 无法删除ECS(EC2容器服务)的EC2实例

标签 amazon-web-services amazon-ec2 amazon-ecs

随着 Amazon ECS 最近推出,我尝试用它启动一个示例。看起来ECS将创建一个EC2实例作为ECS的“集群”,其名称类似于“ECS实例 - EC2ContainerService-default-e40c3e79-1d27-4512-a790-c6782b45b15a”。但是,当我不想再为我的容器提供服务时,我找不到删除此 EC2 实例的方法。

当我通过 Web 控制台终止此实例时,稍后会显示另一个具有相同名称(但实例 ID 不同)的实例。这很烦人,而且已经收了我一些钱。这是 EC2 Web 控制台的屏幕截图:

screenshot of EC2 web console

始终有一个正在运行的实例。

这是我的 ECS Web 控制台的屏幕截图,其中我已删除了所有集群。

enter image description here enter image description here

目前,我找不到有关此问题的任何文档或博客。 :(

最佳答案

Note

If your instance is maintained by an Auto Scaling group or AWS CloudFormation stack, terminate the instance by updating the Auto Scaling group or AWS CloudFormation stack; otherwise, the Auto Scaling group will recreate the instance after you terminate it.

http://docs.aws.amazon.com/AmazonECS/latest/developerguide/deregister_container_instance.html

可以在 EC2 控制台导航 Pane 中找到 Auto Scaling 组:在 Auto Scaling 下,单击 Auto Scaling 组。

关于amazon-web-services - 无法删除ECS(EC2容器服务)的EC2实例,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32684752/

相关文章:

amazon-web-services - 引用嵌套堆栈的输出错误: "the attribute in Fn::ImportValue must not depend on any resources"

amazon-web-services - 当我尝试更改它时,EC2 实例错误告诉我附加了多个 IAM 角色...?

amazon-web-services - Amazon AWS EC2 Ubuntu 实例 - 如何 SSH?

amazon-web-services - 启动和关闭适用于 AWS ECS 或 Kubernetes 的实例?

amazon-web-services - AWS上的Docker。 ECS或Docker数据中心

amazon-web-services - PrestoDB EMR 服务器拒绝连接

node.js - AWS认知: getCredentials not working

Apache 服务器未显示在 EC2 IP 上

mysql - 无法连接到通过 Route53 托管的 RDS 只读副本的域名

web-applications - AWS ECS 中的 Fargate Web 服务器在空闲期后响应时间很长(但有时不是)