AWS Developer Blog

Tag: ruby

Announcing V2 of the AWS SDK for Ruby

I am excited to announce today’s stable release of version 2 of the AWS SDK for Ruby. It is available now as the aws-sdk gem on RubyGems. Features Version 2 of the AWS SDK for Ruby, the aws-sdk gem, provides a number of powerful features for developers including: Support for 40+ services Resource interfaces for […]

Read More

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

Read More

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