Move ec2 utils to this file