AWS SDK for Ruby

Get started quickly using AWS with the AWS SDK for Ruby. The SDK helps take the complexity out of coding by providing Ruby classes for many AWS services including Amazon S3, Amazon EC2, DynamoDB, and more. The SDK is provided as individual downloadable packages for each AWS service, which include code and documentation. The SDK is also available through Ruby Gems (http://rubygems.org/gems/aws-sdk).


$gem install aws-sdk

code to list 50 s3 buckets

require 'aws-sdk-s3' # v2: require 'aws-sdk' s3 = Aws::S3::Resource.new(region: 'us-west-2') s3.buckets.limit(50).each do |b| puts "#{b.name}" end


$ruby buckets.rb