ec2 helpers.