No commit activity in last 3 years
No release in over 3 years
Extensions to aws-sdk, adding more natural access to attributes in AutoScaling, EC2, and more
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 2.0
 Project Readme

aws-sdk-enhanced¶ ↑

Extends aws-sdk–roughly following a decorator pattern–to make it easier to use.

Major versions of this gem are compatible with the corresponding major version of aws-sdk. Note you may use any version of aws-sdk you wish so long as the major version is compatible (you may use aws-sdk version 2.1.23 with aws-sdk-enhanced version 2.0.1).

Currently, this library simply provides a convenience class for retrieving auto scaling groups by name and allows convenient access of specific tags on EC2 instance and auto scaling groups.

Installation¶ ↑

Add the following to your Gemfile:

gem 'aws-sdk-enhanced', '~> 2.0', require: 'aws-sdk/enhanced'

Alternatively, with aws-sdk-enhanced installed:

require 'aws-sdk/enhanced'

This gem depends on and thus requires ‘aws-sdk’, so an explicit “require ‘aws-sdk’” is not necessary.

Synopsis¶ ↑

require 'aws-sdk/enhanced'

instance = Aws::EC2::Instance.new('i-abc1234')
value = instance.tag_hash['MyTag']
puts instance.running? # will not throw exception if instance does not exist (returns true or false)

# note no Aws::AutoScaling::Group class exists in aws-sdk
group = Aws::AutoScaling::Group.new('my_auto_scaling_group')
value = group.tag_hash['MyTag']