0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
aws is a Amazon Web Services client library for Ruby.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 1.0.11
 Project Readme

AWS – Amazon Web Services client library for Ruby

Currently implemented:

EC2 - EC2 API - Cloud Watch - Elastic Load Balancing - Auto Scaling

Usage

Simply provide your amazon access key and amazon secret key to start making calls:

client = AWS::EC2::Client.new(
    :access_key_id => ACCESS_KEY_ID, 
    :secret_access_key => SECRET_ACCESS_KEY
)
client.describe_regions

=> {"regionInfo"=>{
        "item"=>[
            {"regionName"=>"eu-west-1", "regionEndpoint"=>"eu-west-1.ec2.amazonaws.com"}, 
            {"regionName"=>"us-east-1", "regionEndpoint"=>"us-east-1.ec2.amazonaws.com"}
        ]
    },
    "requestId"=>"c6b5e7b4-421d-4484-932c-dcf32e66a2ab", 
    "xmlns"=>"http://ec2.amazonaws.com/doc/2009-04-04/"
}

You can also specify a region to make calls in a specific region:

client = AWS::EC2::Client.new(
    :access_key_id => ACCESS_KEY_ID, 
    :secret_access_key => SECRET_ACCESS_KEY, 
    :region => 'eu-west-1'
)
client.describe_availability_zones

=> {"availabilityZoneInfo"=>{
“item”=>[
{"zoneName"=>"eu-west-1a", “regionName”=>"eu-west-1", “zoneState”=>"available"},
{"zoneName"=>"eu-west-1b", “regionName”=>"eu-west-1", “zoneState”=>"available"}
]
},
“requestId”=>"ed31f360-bb07-4417-b976-5f5bd1740e6e",
“xmlns”=>"http://ec2.amazonaws.com/doc/2009-04-04/"
}