Add support for ec2 instance credentials