Changing ec2 to use reflection, so that all of the ec2 functionalities are exposed now