Workaround for issue in AWS SDK not reading temporary credentials from EC2 metadata service