Added support for temporary credentials, instance profiles

This commit provides support for temporary credentials that are set
explicitly in the resource declaration, or the use of instance profile
credentials by leaving credentials undefined in the resource
declaration.