split into batches

split several calls to the aws ec2 cmd tool into batches of 100