Installing the AWS SDK for Ruby
This section includes prerequisites and installation instructions for the AWS SDK for Ruby.
Prerequisites
Before you install the AWS SDK for Ruby, you need an AWS account and Ruby version 2.3 or later.
If you don’t have an AWS account, use the following procedure to create one.
-
Open https://aws.amazon.com/
and choose Create an AWS Account. -
Follow the online instructions.
Installing the SDK
If your project uses BundlerGemfile
to add the AWS SDK for Ruby to your project.
gem 'aws-sdk'
If you don’t use Bundler, the easiest way to install the SDK is to use RubyGems
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.
sudo gem install aws-sdk