您可能已經找到了解決方案,但我想我會回答以防萬一。
我在幾個月前開始了一個開源項目,旨在幫助組織EC2基礎設施。它在SimpleDB中存儲元數據。
你在一切都被組織到環境和角色的Ruby DSL創建你的機器配置。下面是一個典型的配置:
env :stage do
size 'm1.small' # Default EC2 machine type for the 'stage'
role :app do
positions 1 # Only 1 machine
addresses '11.22.33.44' # Define an elastic IP
disks do # Define EBS volumes
path "/rudy/disk1" do # The path to mount
size 100 # The size in GB
device "/dev/sdr" # The unique disk device
end
end
end
role :db do
size 'm1.large' # Use more powerful machine for db
ami 'ami-dc1038a8' # A 64-bit debian
end
end
然後,您可以通過命令行啓動環境:
$ rudy startup
The following machines were started:
m-us-east-1b-stage-app-01 ec2-11-22-33-44.us-east-1.compute.amazonaws.com
$ rudy -r db startup
The following machines were started:
m-us-east-1b-stage-db-01 ec2-79-125-50-26.us-east-1.compute.amazonaws.com
$ rudy machines
m-us-east-1b-stage-app-01 ec2-11-22-33-44.us-east-1.compute.amazonaws.com
m-us-east-1b-stage-db-01 ec2-79-125-50-26.us-east-1.compute.amazonaws.com
$ rudy disks
disk-us-east-1b-stage-app-01-rudy-disk1 vol-eee10486; 100GB; /dev/sdr; mounted
您可以登錄:
$ rudy -u root ssh
該項目被稱爲魯迪。以下是詳細信息一對夫婦聯繫,並隨時直接與我聯繫,如果您有任何疑問: