AWS Developer Tools Blog
Working with Multiple Regions
In a previous blog post, I introduced the new :region configuration option for the AWS SDK for Ruby (aws-sdk gem). Beyond simplified configuration, the Ruby SDK provides additional helpers for working with multiple regions. There are two new helper classes for working with regions, AWS::Core::Region and AWS::Core::RegionCollection. The AWS module provides helper methods so that […]
Working with Regions
The AWS SDK for Ruby (aws-sdk gem) has some cool new features that simplify working with regions. The Ruby SDK defaults to the us-east-1 region for all services. Until recently, you had to specify the full regional endpoint for each service you connect to outside the default region. If you use multiple services outside us-east-1, […]
AWS at RailsConf 2013
Loren and I will be at RailsConf next week. AWS will have a booth on the exhibitor floor. If you have any questions about the AWS SDK for Ruby (or anything really), we’d love to chat. We will have swag and credits to hand out, so come stop by and say hi. I will also […]
Stubbing AWS Responses
I come across questions frequently about how to test an application that uses the AWS SDK for Ruby (aws-sdk gem). Testing an application that makes use of an external service is always tricky. One technique is to stub the client-level responses returned by the SDK. AWS.stub! Calling the AWS.stub! method in your ruby process configures […]
Logging HTTP Wire Traces
In a previous previous blog post, I wrote about how to log requests generated by the AWS SDK for Ruby (aws-sdk gem). While this can be a valuable tool in seeing how your code translates into requests to AWS, it doesn’t do everything. What if you think the SDK is serializing your request incorrectly? Sometimes […]
AWS SDK for Ruby Release v1.8.3
We just published version 1.8.3 of the AWS SDK for Ruby (aws-sdk gem). This release adds support for AWS OpsWorks and resolves a number of customer reported issues. require ‘aws-sdk’ opsworks = AWS::OpsWorks.new resp = opsworks.client.describe_stacks resp #=> { :stacks => [] } You can view the AWS::OpsWorks::Client API documentation here. Take it for a spin […]
Logging Requests
The AWS SDK for Ruby (aws-sdk gem) has some pretty cool logging features. I find them particularly helpful when I need to debug something. I generally jump into an IRB session that has a logger pre-wired for me and then start sending requests. Configuring a Logger To get log messages from the aws-sdk gem, you […]
Fetch Object Data and Metadata from Amazon S3 (in a Single Call)
I came across an excellent question earlier this week on our support forums. The question was essentially, “How can I fetch object data and metadata from Amazon S3 in a single call?” This is fair question, also one I did not have a good answer to. Amazon S3 returns both object data and metadata in […]
IAM Roles for Amazon EC2 Instances (Credential Management Part 4)
This is the fourth and final part (part 1, part 2, part 3) in a series on how to securely manage your AWS access credentials. This week I am focusing on using AWS Identity and Access Management (IAM) roles for Amazon EC2 instances with the AWS SDK for Ruby (aws-sdk). Simply put, IAM roles for […]
Credential Providers (Credential Management Part 3)
In part 1 of this series, I wrote about how to configure your access credentials with the AWS SDK for Ruby (aws-sdk gem). In part 2 we learned how to rotate your access credentials using the aws-sdk gem. This week we explore credential providers and how they can help you keep your secrets safe and […]