AWS Developer Tools Blog

Category: Ruby

Upcoming Stable Release of AWS SDK for Ruby – Version 2

We plan to release version 2 of the AWS SDK for Ruby next week. We will remove the preview flag from the 2.0 version of aws-sdk. Specify Your Version Dependencies The AWS SDK for Ruby uses semantic versioning. Updates within version 1 are backwards compatible. Version 2 of the aws-sdk gem is not backwards compatible. […]

Using HAQM RDS with Ruby on Rails and AWS OpsWorks

Earlier in this blog series, we showed you how to deploy a Ruby on Rails application to HAQM Web Services using AWS OpsWorks. In that example, we used an OpsWorks-managed MySQL database run on an HAQM EC2 instance. One common piece of feedback on that post was a desire to see how you can set […]

AWS re:Invent 2014 Ruby Recap

Last week, we had a great time meeting with AWS customers using Ruby at AWS re:Invent! We appreciate the feedback we received, and the discussions that we had with you. AWS SDK for Ruby Presentation Notes At AWS re:Invent this year I took many of you on a tour of version 2 of the AWS […]

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 […]

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 […]

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’, […]

Caching the Rails Asset Pipeline with HAQM CloudFront

HAQM CloudFront is a content delivery web service. It integrates with other HAQM 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 […]

Deploying Ruby on Rails Applications to AWS OpsWorks

To begin our series on using Ruby on Rails with HAQM 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 […]

Blog Series: Ruby on Rails on HAQM Web Services

Welcome to a series on how to integrate Ruby on Rails apps with HAQM 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 […]

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 […]