Created
January 30, 2014 20:01
-
-
Save GRGSIBERIA/8717586 to your computer and use it in GitHub Desktop.
RDSに接続してインスタンスを取得するだけ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "aws-sdk" | |
rds = AWS::RDS.new( | |
:access_key_id => "XXX", | |
:secret_access_key => "XXX", | |
:rds_endpoint => "rds.us-west-2.amazonaws.com") | |
inst = rds.db_instances['DB Instance Identifier'] | |
puts inst.db_name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment