Menu
AWS SDK for Ruby
Developer Guide

Installing the AWS SDK for Ruby

This section includes prerequisites and installation instructions.

Prerequisites

Before you install the AWS SDK for Ruby, you need an AWS account and Ruby version 1.9 or later.

If you don't have an AWS account, use the following procedure to create one.

To sign up for AWS

  1. Open http://aws.amazon.com/ and choose Create an AWS Account.

  2. Follow the online instructions.

Installing the AWS SDK for Ruby

If your project uses Bundler, add the following line to your Gemfile to add the AWS SDK for Ruby to your project.

Copy
gem 'aws-sdk'

If you don't use Bundler, the easiest way to install the SDK is to use RubyGems. To install the latest version of the SDK, use the following command.

Copy
gem install aws-sdk

If the previous command fails on your Unix-based system, use sudo to install the SDK, as shown in the following command.

Copy
sudo gem install aws-sdk