Working ec2.groovy