test if on ec2
adapted credentials provder to ec2 environment