【问题标题】:Setting EC2 instance root device type to EBS in Rubber - Rails在 Rubber - Rails 中将 EC2 实例根设备类型设置为 EBS
【发布时间】:2014-03-26 10:38:14
【问题描述】:
使用Rubber创建EC2实例时如何设置root_device_type?
我看到创建实例后,序列化的实例对象有root_device_type 和instance-store。我想创建一个在EBS 中运行的实例。
他们提供文档和示例配置来创建 EBS 卷并将其挂载到实例上,但没有关于如何创建 EBS 实例的文档。
谢谢!
【问题讨论】:
标签:
ruby-on-rails
amazon-web-services
amazon-ec2
rubber
【解决方案1】:
呸!终于找到了如何更改配置。找到这一行样本rubber.yml。
# REQUIRED: the ami and instance type for creating instances
# The Ubuntu images at http://alestic.com/ work well
# Ubuntu 12.04 Precise instance-store 64-bit: ami-eafa5883
#
# m1.small or m1.large or m1.xlarge
image_type: c1.medium
image_id: ami-eafa5883
转到alestic.com,获得了 EBS Ubuntu 12.04 的 AMI id,就是这样! :) (ami-51821b6b)
如果有更好的文档就好了。特别是对于像我这样从 DO 和其他主机到 EC2 的人。