I recently needed to be able to mount EBS volumes during a chef run. I figured someone had already solved that problem by now. I found this cookbook by titanous which did the job well. The only problem was that the assumption titanous had made regarding how to handle authentication didn’t work for me. I have two AWS accounts (dev and prod) and they don’t share keys. I live dangerously and only have one chef server, though.
Because this is open source we’re talking about, I made it work for me. The beauty was that I gave my changes back to titanous. I’d made a mistake that he caught, and then he merged my changes in. Now anyone who follows the same path I did, and has a setup like mine will having a working system out of the box.