chef-boneyard / chef-provisioning-aws

AWS driver and resources for Chef that uses the AWS SDK
Apache License 2.0
142 stars 121 forks source link

Add support for RDS creation from DB snapshot #508

Closed GolubevV closed 7 years ago

GolubevV commented 8 years ago

Currently, in the chef-provision-aws there is no possibility to create AWS RDS instance, basing on existing DB snapshot - they new instances are always expected to be created from scratch.

The PR is based on a private fork rebased from the latest released 1.x version of chef-provisioning-aws (1.11.0), as for the moment we can not update to Ruby 2.2.5 on our instances

This PR is targeted to provide support for creating RDS instances from the snapshot if it was specified as parameter for the resource. It also updates the minimal required version of AWS-SDK Ruby gem in Gem spec as default value (2.1.26) is no longer compatible with chef-provisioning-aws 1.11.0 and higher.

The code has been tested and is already used for provisioning our current instances of RDS since last 3-4 month.