Attach existing EBS as root device in spot instance request

Is it possible to include an existing, unattached, available EBS volume as the root device in a spot instance request? I'd like to create a setup where the system is up and running when the spot price is met, and after a termination and the spot price comes back into range I can re-request and start an instance right where I left off.

thanks!


While Overriding the AMI's Block Device Mapping as such is possible, the root device is the exception, unfortunately:

Any instance you launch automatically includes any storage devices in the AMI's block device mapping. You can override that mapping by specifying a block device mapping with the changes that you want at launch time. In your overrides, you can modify the mapping for any of the storage devices except the root device volume . [emphasis mine]

This is also reflected in the respective wizards within the AWS Management Console, which only allow to adjust the root volume size, but not the snapshot it is based upon, see the image within Changing the Root Device Volume to Persist.

链接地址: http://www.djcxy.com/p/11516.html

上一篇: 我如何有效地实现java.awt.Composite?

下一篇: 在现场实例请求中作为根设备附加现有EBS