As Amazon ECS being launched recently, I tried to start a sample with it. It looks like ECS will create a EC2 instance as a "cluster" for ECS, whose name is like "ECS Instance - EC2ContainerService-default-e40c3e79-1d27-4512-a790-c6782b45b15a". However, I cannot find a way to delete this EC2 instance when I don't want to serve my container any more.
When I terminate this instance through web console, another instance with the same name(but different instance id) will show up later. It's quite annoying and has already charged my some money. Here's the screenshot of EC2 web console:
where there's always a running instance.
Here's my screenshot of ECS web console, where I have deleted all the cluster.
At this point, I can't find any documentation or blog on this issue. :(
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
Auto Scaling groups can be found in the the EC2 console navigation pane: under Auto Scaling, click Auto Scaling Group.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With