The minimum changes I had to make in order to get the replicasets to work with Amazon OpsWorks.
Added credits to the file