Mock ec2 call