use connect_ec2_endpoint instead of connect_euca, and properly pass keys to connect_ec2