[[ToolsEcosystem]] #contents ---- * RightScale's right_aws [#s5202d72] |作者 | [[RightScale>http://www.rightscale.com/]] | |ホームページ | [[RightScale Gems Home>http://rightscale.rubyforge.org/]]、[[RubyForge Project Page>http://rubyforge.org/frs/?group_id=7847&release_id=31719]] | |ドキュメント | [[API ドキュメント>http://rightscale.rubyforge.org/right_aws_gem_doc/]] | |ダウンロード | [[RubyForge>http://rubyforge.org/frs/download.php/52292/right_aws-1.10.0.gem]] か sudo gem install right_aws | |ソース | [[RubyForge>http://rubyforge.org/frs/download.php/52292/right_aws-1.10.0.gem]] | |バージョン | 0.8.x-1.10.0 | |ライセンス | [[MIT ライセンス>http://www.opensource.org/licenses/mit-license.php]] | ---- * 使用例 [#j2ed8517] Eucalyptus と ''right_aws'' gem が通信できるように、''irb'' を使います。 ** right_aws のセットアップ [#s236a608] right_aws をインストール、環境をセットアップして、''irb'' を起動します。 ~> sudo gem install right_aws ~> source ~/.euca2/eucarc ~> irb ** right_aws の使い方 [#rb6d9ed9] Ruby 環境をセットアップして、''right_aws'' ライブラリを使い Eucalyptus に接続します。 irb(main):001:0> require 'rubygems' => true irb(main):002:0> require 'right_aws' => true irb(main):003:0> @euca = = RightAws::Ec2.new(ENV['EC2_ACCESS_KEY'],ENV['EC2_SECRET_KEY']) irb(main):004:0> @euca.describe_images I, [2009-07-13T11:54:55.883207 #9406] INFO -- : Opening new HTTP connection to 192.168.7.7:8773 => [{:aws_id=>"eki-3313191F", :aws_image_type=>"kernel", :aws_owner=>"admin", :aws_location=>"my-kernel/vmlinuz.manifest.xml", :aws_state=>"available", :aws_is_public=>true, :aws_architecture=>"x86_64"}, {:aws_id=>"eri-A3501A6C", :aws_image_type=>"ramdisk", :aws_owner=>"admin", :aws_location=>"my-ramdisk/initrd.img.manifest.xml", :aws_state=>"available", :aws_is_public=>true, :aws_architecture=>"x86_64"}, {:aws_id=>"emi-C6E71A64", :aws_image_type=>"machine", :aws_owner=>"admin", :aws_location=>"euca-my-image/disk.img.manifest.xml", :aws_kernel_id=>"eki-3313191F", :aws_state=>"available", :aws_ramdisk_id=>"eri-A3501A6C", :aws_is_public=>true, :aws_architecture=>"x86_64"}] irb(main):009:0> ---- 原文:http://open.eucalyptus.com/wiki/ToolsEcosystem_right_aws