auth() for ec2 cloud and testing