EC2 - 拍摄 EBS 快照,保存到 S3,然后从 S3 启动实例
我喜欢拍摄 AMI 快照的便利 - 但理想情况下我不想为附加到我正在运行的实例的卷付费。
有没有一种方法可以将快照实例保存到 S3,然后从 S3 启动,而无需将卷附加到正在运行的实例 - 获得快照的便利 - 无需运行成本?
I like the convenience of taking an AMI snapshot - but ideally I do no want to pay for the volume to be attached to my running instance.
Is there a way to save a snapshot instance to S3 and then launch from S3 without attaching a volume to the running instance - gaining the convenience of snapshots - without the running costs?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
EBS 快照已持久保存到 S3 (http://aws.amazon.com/ebs/)
来自 ebs 文档:
和 AMI 也存储在 S3 中。
EBS snapshots are already persisted to S3 (http://aws.amazon.com/ebs/)
from ebs docs:
and AMIs are also stored in S3.
确实,对于 EBS 卷,您需要为分配的空间付费,即使您仅将其中的一小部分用于数据。
如果您只是想存储数据,您可以使用任何工具将数据直接“备份”到S3,然后在需要时将其恢复到卷。 S3sync 对此效果很好,创建 tarball 也很有效。
It's true that with an EBS volume you are paying for the allocated space, even if you are just using a fraction of it for data.
If you are just looking to store the data, you can use any tool to "backup" the data to S3 directly, then restore it to a volume when you need to. S3sync works well for this, so does creating a tarball.
这不仅仅是分配空间与已使用空间的问题。使用 EBS,您还需要在安装卷时为 I/O 操作付费。
我正在尝试做同样的事情——将 EBS 支持的实例迁移到 S3 支持的实例。 此处的其他线程SO 声明这是无法完成的,而是对 Eric Hammond 的 AWS 论坛帖子的回应 表明还有希望:
不完全确定,但埃里克知道他在说什么,所以如果这对你来说足够重要,你可以尝试一下。
It's not just an allocated vs used space issue. With EBS you are also paying for I/O ops while the volume is mounted.
I am trying to do the same thing -- migrate an EBS-backed instance to an S3-backed instance. Other threads here on SO state that this can't be done, but a response to an AWS forum post by Eric Hammond suggests that there is hope:
Not exactly definitive, but Eric knows what he's talking about, so if it's important enough to you you can give it a try.