AWS Developer Blog

Tag: ruby

Client Response Stubs

We recently added client response stubs to the aws-sdk-core gem. Response stubbing disables network traffic and causes a client to return fake or stubbed data. # no API calls are made s3 = Aws::S3::Client.new(stub_responses: true) s3.list_buckets.buckets.map(&:name) #=> [] Custom Response Data By default, stubbed responses return empty lists, empty maps, and placeholder scalars. These empty […]

Read More

Waiters

We’ve added a feature called Waiters to the v2 AWS SDK for Ruby, and I am pretty excited about it. A waiter is a simple abstraction around the pattern of polling an AWS API until a desired state is reached. Basic Usage This simple example shows how to use waiters to block until a particular […]

Read More

Using Resources

With the recent 2.0 stable release of the aws-sdk-core gem, we started publishing preview releases of aws-sdk-resources. Until the preview status is released, you will need to use the –pre flag to install this gem: gem install aws-sdk-resources –pre In bundler, you should give the full version: # update the version as needed gem ‘aws-sdk-resources’, […]

Read More

Caching the Rails Asset Pipeline with Amazon CloudFront

Amazon CloudFront is a content delivery web service. It integrates with other Amazon Web Services to give developers and businesses an easy way to distribute content to end users with low latency, high data transfer speeds, and no minimum usage commitments. Ruby on Rails introduced the asset pipeline in version 3.1. The Rails asset pipeline […]

Read More

Deploying Ruby on Rails Applications to AWS OpsWorks

To begin our series on using Ruby on Rails with Amazon Web Services, we are going to start at the beginning: deploying our application. Today, we will be deploying our application to AWS OpsWorks. Following along with this post, you should be able to deploy our "Todo Sample App" to AWS using OpsWorks, with your […]

Read More

Blog Series: Ruby on Rails on Amazon Web Services

Welcome to a series on how to integrate Ruby on Rails apps with Amazon Web Services. In this series, we’re going to start from scratch with a simple app, and show you how to make it scalable, highly available, and fault tolerant. The Sample App For this blog series, we have built a sample app […]

Read More

AWS SDK for Ruby V2 Preview Release

Version 2 of the AWS SDK for Ruby is available now as a preview release. If you use Bundler with some standard best-practices, you should be unaffected by the v2 release of the aws-sdk gem. This blog post highlights a few things you might want to be aware of. Installing V2 Preview Release V2 of […]

Read More

Version 2 Resource Interfaces

In version 1 of the AWS SDK for Ruby provides a 1-to-1 client class for each AWS service. For many services it also provides a resource-oriented interface. These resource objects use the client to provide a more natural object-oriented experience when working with AWS APIs. We are busy working resource interfaces for the v2 Ruby […]

Read More

Response Paging

We’ve been busy working on version 2 of the AWS SDK for Ruby. One of the features we added recently was response paging. Paging in the Version 1 Ruby SDK In version 1 of the Ruby SDK provides collection classes for many AWS resources. These collections are enumerable objects that yield resource objects. iam = […]

Read More

AWS SDK Core v2.0.0.rc12 Updates

We recently published v2.0.0.rc12 of the aws-sdk-core gem (https://github.com/aws/aws-sdk-core-ruby). This release merges the long-running normalized branch onto master. Upgrading Notes Please note, when updating to rc12, you may need to make some minor code changes. These are summarized below: Service modules now have a Client class, these should be used to construct API clients: # […]

Read More