added get.instance.id function, added key and group to launch ec2 function