What happens when I reboot an EC2 instance?

前端 未结 4 1149
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-01 11:55

When I reboot an EC2 instance, do I get the initial image again, or is the state of the hard disk before the reboot kept?

And what happens with billing, does the hour st

4条回答
  •  北海茫月
    2021-02-01 12:14

    As per AWS Documentation:

    An instance reboot is equivalent to an operating system reboot. In most cases, it takes only a few minutes to reboot your instance. When you reboot an instance, it remains on the same physical host, so your instance keeps its public DNS name (IPv4), private IPv4 address, IPv6 address (if applicable), and any data on its instance store volumes.

    Rebooting an instance doesn't start a new instance billing hour, unlike stopping and restarting your instance.

    Further, they recommend:

    We recommend that you use Amazon EC2 to reboot your instance instead of running the operating system reboot command from your instance. If you use Amazon EC2 to reboot your instance, we perform a hard reboot if the instance does not cleanly shut down within four minutes.

提交回复
热议问题