livelycode/aws-lib — pull request #69 by ianshward (2012-12-14 17:32:33+00:00)
Title: Add support for EC2 metadata API, including automatic lookup of IAM acce...

...ss key and secret ID when IAM roles are used. This commit also increases the timeout of mocha tests in order to allow for testing IAM role credential cache expiry. Increased test timeout also increases liklihood of tests completing when run from a slower internet connection.

Pull request includes tests and documentation about the why/how of the metadata API and IAM Roles. I added a nock dependency which makes writing tests around the metadata API possible.