keep sending ec2 request until it goes through