在橡胶 - Rails中将EC2实例根设备类型设置为EBS

时间:2014-03-26 10:38:15

标签: ruby-on-rails amazon-web-services amazon-ec2 rubber

如何使用root_device_type创建EC2实例时设置Rubber

我看到在创建实例后,序列化实例对象的root_device_typeinstance-store。我想创建一个在EBS中运行的实例。

他们提供文档和示例配置来创建EBS卷并将其挂载到实例上,但没有关于如何创建EBS实例的文档。

谢谢!

1 个答案:

答案 0 :(得分:0)

唷!终于找到了如何更改配置。找到此行示例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。