* Converted from Jeweler to Bundler, 'bundle install' to install dependencies
* Adding ability to launch t1.micro instances for ec2 regular and spot price instances
* Adding support for describe/modify/reset instance attributes with tests.
* Updated to API version : 2010-08-31
* Added experimental support for EC2 , ,
* Added experimental Eucalyptus support, provide by Sang-Min Park from Eucalyptus.
* Instead of having hard coded "/" as URL path, the path can be given to as an option. Setup.rb is changed such that server, port, path, and use_ssl can be correctly set up.
* RDS :db_security_groups should be an Array, not a String.
* Use HmacSHA256 signatures instead of SHA1 (preferred by AWS and improves support for Eucalyptus)
* added AWS::EC2::Base
* Applied experimental CloudWatch Monitoring Patch by fred-secludit, removes limitations on which server to connect to, and better handles statistics and dimensions.
* Changed AWS::EC2::Instance from a module to a class to help along an experiment by bdigital
* Zarro open boogs. Zarro Open pull requests. W00t
* Less strict checking on which server endpoints you can pass in as an environment var.
* Moved ec2sh script to awshell to better reflect the more comprehensive nature of the gem.
* Better instructions on using awshell upon running
* awshell now sets up handles for all of the various services we use, not just @ec2 (+ @as, @rds, @elb, @cw)
* awshell prints out the various server endpoints that it will actually use in the shell (you can override with env vars).
* Better handling of FixNum in a few methods.
* A few bug fixes.
* Enhancements to EC2 register_image to handle registration based on EBS snapshots (jamespharaoh)
* Bugfix in signing algorithm (wlach)
* Added EC2 describe_subnets support (petitbon)
* Added EC2 Spot Instance Request Support (nirvdrum)
* Added EC2 describe_spot_price_history (tlossen)
* Added ELB describe_instance_health method (rubysolo)
* Initial support for new EBS AMI's
* Updated EC2 API version
* Added US West 1 Data Center to list of valid endpoints. (us-west-1.ec2.amazonaws.com)
* Updated exceptions.rb to be in sync with latest documented exceptions.
* Updated #run_instances to support EBS AMI's and sync with latest .
* Added new
* Added new
* Added stub methods for all known missing EC2 methods. (Please help with patches + tests!)
* Added and updated tests for new/modified methods.
* Additional commits for AutoScaling. Thanks to Ari (auser)!
* Updated README.rdoc installation instructions. Reflects removal of deprecated GitHub gem building.
* Added support for AWS AutoScaling for EC2. Thanks to Ari Lerner (auser)!
* Converted to YardDoc documentation format. See : http://yard.soen.ca/getting_started
* Major re-factor by Kris Rasmussen (krisr) to add support for the AWS Elastic Load Balancer API. Kudos Kris!
* Using technicalpickles/jeweler to manage gem now. See : http://github.com/technicalpickles/jeweler/tree/master
* Applied patch, with updated tests to fix issue with base64 encoded user data (rsanheim).
* Applied patch, fixing an issue with EU Signature version 2 creation (delano).
* You can now specify any arbitrary SSL tcp port to connect to (kerryb)
* Added rake target to quickly install the gem without docs
* Honor the EC2_URL env var if provided in the main lib
* Some minor modifications to the exceptions raised when unknown
* Added support in the helper binaries for EC2_URL server url for Euro servers
* AWS Signature v2 support
* Removed docs to the ability to get Response
* Fixed conflict when aws/s3 gem was included in user code
* Updated API version to 2008-12-01
* Note : The new European EC2 zone should just work if you specify ':server => "eu-west-1.ec2.amazonaws.com"' when initializing AWS::EC2::Base.new(). Please report any issues you have with using this new service.
* Added basic custom kernel id support to run_instances. Thanks to Keith Hudgins for the patch.
* Changed response object from AmazonAWS::Response to Hash (patch from Yan Pritzker 'skwp') Thanks!
* Added support for Elastic Block Storage (patch from Yann Klis 'yannski') Thanks!
* Bumped AWS EC2 API version to 2008-05-05
* Bumped gem version number
* Whitespace cleanup
* Updated gem install instructions, and dependency specifications in the gemspec.
* Merged patch from 'orionz' which adds support for EC2 Availability Zones. Thanks!
* A few adjustments to work with GitHub.
* Moved gem completely to GitHub.
* Removed a LOT of RubyForge cruft that's no longer needed.
* Fix bug where ec2
Thanks to Brian Thomas for reporting.
* Added initial support for API version 2008-02-01. Support for new 'Elastic IP' functionality added.
* Change HTTP API requests to use POST instead of GET. Based on patch
* Add support for HTTP Proxy when :proxy_server argument is passed. Based on patch from Mathias Dalheimer.
* Updated to support EC2 API version 2007-08-29 released on 2007-10-16
* Supports new instances type feature. Specify an instance type to launch
(m1.small, m1.large, m1.xlarge) when you call the 'run_instances' method.
e.g. add to the params hash ':instance_type => "m1.small"'
* RunInstances and DescribeInstances now return the time when the Amazon EC2 instance was launched.
* Code Tidyup : Removed trailing spaces in code docs.
* Updated using Dr. Nic's newgem v. 0.13.5
* Updated email address.
* No functional changes in the gem.
* Changed how require statement for xmlsimple is called so we don't get warnings when running in rails.
Now it looks like: require 'xmlsimple' unless defined? XmlSimple
* Updated gem to work with new official release of AWS API version 2007-03-01 which occurred
on July 6, 2007.
* Added support for primary new feature which supports Paid AMI's and the product codes
associated with them. Modified several methods to support this change, updated the test
cases, and added a new method EC2#confirm_product_instance.
* Minor change to test case.
* Some minor changes to the RDocs and README.txt
* MAJOR library changes : THESE CHANGES ARE NOT BACKWARD COMPATIBLE!! You will need to update
the way in which you make calls, handle responses, and rescue exceptions from this library.
If you prefer not to make these changes you can feel free to continue to use the older version
of the gem. These older versions however will no longer be maintained.
* MAJOR refactoring of how methods calls are made. Now all methods are called with a simple hash
of arguments and none of them are positional. This feels much more "Ruby'ish".
* MAJOR refactoring of how responses are returned to users. No longer do you have to call the
.parse method, and no longer are you getting back simple arrays of information. Responses
now come in the form of OpenStruct objects that contain all of the data for an object in
Enumerable form so you can use iterators (.each, .each_pair, etc). All methods return an AWS::Response object
which inherits from OpenStruct. The return data from EC2, which is in XML form, is parsed
with XmlSimple and is used to directly construct the return data structure. This allows us
to know with some confidence that the data structure returned from AWS will always be consistent
with this library's responses. There is also an .xml attribute for each response object that lets you
see the full and complete XML response from AWS if that is useful to you.
* Added an exception framework which will now throw appropriate Ruby exceptions
that match those handed to us by Amazon EC2. ArgumentError exceptions will also
be thrown if you are making calls we know to be illegal or malformed. You should rescue
these exceptions in your application instead of parsing text responses. All exceptions
descend from AWS::Error. You can see them all in exceptions.rb in the gem install.
* Added a full suite of test/spec unit tests which currently cover 100% of the public methods
in this library. We have abot 92% code coverage according to rcov. This has greatly enhanced
the reliability of the library as well as our confidence in the code.
We used to have 0% test coverage. :-/
* Added an EC2 command shell : 'ec2sh' which can be called from anywhere and gives you
an interactive irb session with an EC2 connection pre-made for you as @ec2. You can use this
to interactively execute any command on EC2 that this library supports. Try @ec2.methods.sort
or @ec2.describe_images to test it out. You must first setup two shell environment variables
which contain your ACCESS_KEY_ID and SECRET_ACCESS_KEY for this to work. Otherwise an error
will be thrown when you try to start it. This is way cool and shamelessly borrowed from
Marcel Molina's fine AWS::S3 library.
* Updated API version in the query API request to 2007-01-19, and added all known method calls
in this version of the API to the gem (including reboot, viewing console output, NAT addressing
* Removed .parse method as it is no longer needed or wanted.
* Removed 'verbose' attribute writer and a couple of debug 'puts' calls in EC2.rb.
* Removed deprecated alias's used in the library that were added in v0.0.3
* Gem now requires XmlSimple gem to be installed.
* Repackaged with updated newgem generator v. 0.10.3 from http://newgem.rubyforge.org/ to take advantage of new deployment goodness.
* Applied patch from Kevin Clark which does the following:
* New method to the instances.rb to allow for issuing a reboot command to an EC2 instance.
* New Mocha based tests (Mocha test suite must be installed to run tests. 'sudo gem install mocha')
* Cleanup of the test directory.
* Applied patch from Randy Bias to CGI escaping error. From his notes:
I finally figured out what was going on. It was a compound problem. The first being that you can't
CGI::encode the UserData early. You have to just Base64 encode it. Unfortunately, when you Base64
encode it, it means that some encodings will be padded with extra chars, specifically the '=', but &, ?
and = get stripped by EC2.canonial_string. So if a Base64 encoding has trailing ='s for padding,
these get stripped and then you sign the UserData Base64 payload sans the padding. But it looks
like Amazon's side is doing the right thing and is signing the padding. So, the signatures mis-match.
I've got the complete patch here and it's about as elegant/clean as I could make it in a short
period of time. It's a little tough to strip those equal signs when there are so many in the URI.
I think this works pretty well, though. I'm splitting the URI on '&', then for each field ripping
out all '&' and '?' and only the first '='. Then stitching it back together.
* Patched instances.rb with a bugfix and patch provided by Randy Bias (Thanks Randy!).
Only minimally tested so please let me know if this causes any problems for anyone.
From his notes:
I wanted to let you know that there appears to be a bug in how user data is passed. In
instances.rb the line that creates the base64 encoded package of user data is as follows:
userData = CGI::escape(Base64.encode64(in_params[:userData]).strip())
This may have worked prior, but at least right now the CGI::escape appears to cause a
breakage. More specifically it turns something like this (the actual base64 encoded string):
And it looks like EC2 chokes on the %0, which is CGI::escape's way for handling an EOL.
Unfortunately, the Base64.encode64 (at least in my 1.8.5 version of Ruby) inserts a
EOL at every 47 chars, no matter what:
[randyb@master randyb] cat /tmp/foo.rb
[randyb@master randyb] /tmp/foo.rb
The best way to handle this is to strip the CRLFs/EOLs before passing to CGI.escape.
* Changes to home page documentation and example files to indicate that you
should use 'require_gem' instead of a simple require. Not sure if this
is a result of something I am doing in the packaging of the gem that is
incorrect or if this is right and proper. I will investigate further.
* Patched instances.rb run_instances method to allow for submission of
user data with the command to start an instance. Patch submitted
anonymously on RubyForge. This had not been functionally implemented
in the Amazon Web Services sample library prior to this patch.
* Added simple framework for adding unit tests for the library under test dir.
No functional unit tests exist yet.
* Applied patch from Kevin Clark to svn version 7. Thanks for the
patch and the description Kevin! Please report if you
encounter any issues with this patched version. Here is Kevin's
description which I requested : "It helps me to think of modules as boxes full of classes and
methods. REXML is a module which holds various classes related to parsing XML
including REXML::Node, REXML::Document and REXML::XPath. When you
include a module it takes everything out of the box and places it in
the local context. So, when you include REXML in the global namespace
on line 27 of EC2.rb, it includes classes called Node, Document and XPath in the
global object space. This means that I can't have a class called Node
in my own project (which I do). The library would be a much better
neighbor if it instead accessed the REXML::Document and REXML::XPath
classes explicitly through the module."
* API CHANGE : Changed method name 'authorize' to 'authorize_security_group_ingress' to ensure consistent
naming of Ruby library methods to match AWS EC2 API actions. Alias to 'authorize' for backwards compatibility.
* API CHANGE : Changed method name 'revoke' to 'revoke_security_group_ingress' to ensure consistent
naming of Ruby library methods to match AWS EC2 API actions. Alias to 'revoke' for backwards compatibility.
* API CHANGE : Changed method name 'delete_securitygroup' to 'delete_security_group' to ensure consistent
naming of Ruby library methods to match AWS EC2 API actions. Alias to 'delete_securitygroup' for backwards compatibility.
* API CHANGE : Changed method name 'describe_securitygroups' to 'describe_security_group' to ensure consistent
naming of Ruby library methods to match AWS EC2 API actions. Alias to 'describe_securitygroups' for backwards compatibility.
* API CHANGE : Changed method name 'create_securitygroup' to 'create_security_group' to ensure consistent
naming of Ruby library methods to match AWS EC2 API actions. Alias to 'create_securitygroup' for backwards compatibility.
* Added many API rdoc's, some method descriptions copied from Amazon Query API Developer Guide.
* Extracted some parts of the formerly monolithic EC2 library out into separate files for manageability.
* Changed the HTTP 'User-Agent' string used for each request so that we have our own user agent
to identify this library's calls. Now set the version
master version number for this library which is stored in lib/EC2/version.rb and should only
be defined in one place.
* Set @http.verify_mode = OpenSSL::SSL::VERIFY_NONE to avoid seeing SSL Cert warning
"warning: peer certificate won't be verified in this SSL session". File EC2.rb:96
* Make 'pathlist' utility method a private method (EC2.rb:111). No reason I can see for this to be exposed.
* Bugfix in run_instances method. Method works now. Patch submitted by Stephen Caudill on AWS forums. Thanks!
* Initial release of the Ruby Gem. This includes the version of the library exactly as provided by
Amazon Web Services as example code. No changes or enhancements to that code were made other than
packaging it as a Ruby Gem.
* RubyForge project created. http://github.com/grempe/amazon-ec2/tree/master