check if instance metadata available

To speed up credential fetching.
Merge branch 'instance-metadata' into feature-ec2
added instance metadata creds to Ec2
aws 10