简体   繁体   English

如何删除EC2中的实例?

[英]How to delete instance in EC2?

How can I delete instance in Amazon EC2.如何删除 Amazon EC2 中的实例。 I have terminated the instance but still it was showing in instance list table.我已经终止了实例,但它仍然显示在实例列表中。 I want to know few things related to this我想知道一些与此相关的事情

1: Is there any significant difference b/w Delete and Terminate?
2: what is the use of terminated instance?
3: what are the cases at which instance gets terminated?
  1. Terminating your instance is essentially deleting it, it will take some time to get reflected on your dashboard (meaning it won't appear on your instance list table)终止您的实例本质上是删除它,需要一些时间才能反映在您的仪表板上(这意味着它不会出现在您的实例列表中)
  2. There is no use of terminated instances.不使用终止的实例。
  3. Once you terminated your instances, it means you have completely lost that particular instance.一旦你终止了你的实例,就意味着你已经完全失去了那个特定的实例。

But if, during the time of creation of your instance, you had enabled the option called Protect against accidental termination , then you will not be able to terminate without disabling this option.但是,如果在创建实例期间,您启用了名为“防止意外终止”的选项,那么您将无法在不禁用此选项的情况下终止。

But in your instance table if the Instance State column has the value terminated it means your instance is deleted and you can no longer use it.但是在您的实例表中,如果Instance State列的值已终止,则意味着您的实例已被删除,您无法再使用它。

The only thing you can do is terminating an instance.您唯一能做的就是终止一个实例。 It stops everything.它停止一切。

After you terminate an instance, it remains visible in the console for a short while, and then the entry is automatically deleted.终止实例后,它会在控制台中保持可见一段时间,然后该条目将被自动删除。

You cannot delete the terminated instance entry yourself .您不能自己删除终止的实例条目

More info here http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/terminating-instances.html更多信息在这里http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/termination-instances.html

Shuts down one or more instances.关闭一个或多个实例。 This operation is idempotent;这个操作是幂等的; if you terminate an instance more than once, each call succeeds.如果您多次终止一个实例,则每次调用都会成功。

Terminated instances remain visible after termination (approximately one hour).终止后(大约一小时)终止的实例仍然可见。

Note By default, Amazon EC2 deletes the Amazon EBS root device volume at instance termination. Note 默认情况下,Amazon EC2 在实例终止时删除 Amazon EBS 根设备卷。 Additional volumes that were attached when the instance launched and any volumes that were attached after instance launch persist.实例启动时附加的其他卷和实例启动后附加的任何卷都将保留。 For more information, see Preserving Amazon EBS Volumes on Instance Termination in the Amazon EC2 User Guide for Linux Instances.有关更多信息,请参阅 Amazon EC2 用户指南(适用于 Linux 实例)中的在实例终止时保留 Amazon EBS 卷。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM