Knowledge Center Monthly Newsletter - March 2025
Stay up to date with the latest from the Knowledge Center. See all new and updated Knowledge Center articles published in the last month and re:Post’s top contributors.
当我终止 Amazon Elastic Compute Cloud (Amazon EC2) 实例时,Amazon Elastic Block Store (Amazon EBS) 卷将被删除。
当一个实例终止时,每个附加的 EBS 卷的 DeleteOnTermination 属性的值决定是保留还是删除该卷。默认情况下,根卷的 DeleteOnTermination 属性设置为 True。对于所有其他卷类型,该属性均设置为 False。
要在实例终止时保留根卷,请将根卷配置为保留现有实例。
注意: 更改这些值不会产生账单费用。但是,根据 EBS 的定价,您选择保留的 EBS 卷上的资源仍会产生费用。
如果在运行 AWS 命令行界面 (AWS CLI) 命令时收到错误,请确保您使用的是最新版本的 AWS CLI。
启动新实例时,可以将 DeleteOnTermination 属性设置为 False。
有关使用 Amazon EC2 控制台的说明,请参阅使用控制台将根卷更改为在启动时保留。
要使用 AWS CLI 或 AWS Tools for Windows PowerShell,请参阅使用命令行将根卷更改为在启动时保留。
如果该实例已经在运行,则可以将正在运行的实例的根卷更改为保留。
Amazon EBS 卷
实例终止的工作原理