ralph-tice/edda — pull request #1 by coryb (2013-02-21 21:41:37+00:00)
Title: tweaks to route53 patch

Hi Ralph

I have made a few changes which I think accomplish what you want. I look some liberties to change the resourceRecordSets name to hostedRecords, the name you used matches AWS but feels a bit to generic to me.

I think you were getting hung up on how to use the original Zone record, which is problematic since the record uses an "Any" type for the data stored. For this record type it will always be Map[String,Any] so you have to jump through a few hoops to cast it with asInstanceOf[...].

Here are the changes:
* rename resourceRecordSets to hostedRecords
* flatten hostedRecords set to track individual records
* modify original record to include zone id/name to aid tracking relationships
* set hostedZones id to be record name

If the changes work for you, then merge my pull request in to your branch, then I will merge in your pull request into the edda master tree.

Thanks,
-Cory