Working with the AWS SDK for Ruby - Part II

This page summarizes the projects mentioned and recommended in the original post on dev.to

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • AWS SDK for Ruby

    The official AWS SDK for Ruby.

  • We can re-use the same EC2 client stub response because Aws::EC2::Resource#instances implementation it's just a wrapper around the Aws::EC2::Client#describe_instances method, so the underlying EC2 API call is the same. Snippet code from https://github.com/aws/aws-sdk-ruby:

  • ruby_aws_sdk_rspec

    Discontinued Ruby AWS SDK Client stubbing example with RSpec

  • After clarifying in Part I the differences between Aws::EC2::Client, Aws::EC2::Resource and Resources (e.g. Aws::EC2::Vpc, Aws::EC2::Instance, etc), today we'll see how to add tests while we're using AWS SDK for Ruby. We'll follow the repo pabloxio/ruby_aws_sdk_rspec to understand how to stub responses for the AWS EC2 Client.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts