Ec2 support

adding the support for ec2