Add initial support for IAM roles.

An attempt to fix https://rt.cpan.org/Public/Bug/Display.html?id=81664
Note that temporary credentials should be checked for expiration and
re-fetched from the metadata service.