'Create security group with name/description. auth_ssh=True
will open port 22 to world (0.0.0.0/0). auth_group_traffic
will allow all traffic between instances in the same security
group'

def create_group(self, name, description, auth_ssh=False, auth_group_traffic=False, vpc_id=None):

    log.info(('Creating    security    group    %s...' % name))
    sg = self.conn.create_security_group(name, description, vpc_id=vpc_id)
    if (not self.get_group_or_none(name)):
        s = utils.get_spinner(('Waiting    for    security    group    %s...' % name))
        try:
            while (not self.get_group_or_none(name)):
                time.sleep(3)
        finally:
            s.stop()
    if auth_ssh:
        ssh_port = static.DEFAULT_SSH_PORT
        sg.authorize(ip_protocol='tcp', from_port=ssh_port, to_port=ssh_port, cidr_ip=static.WORLD_CIDRIP)
    if auth_group_traffic:
        sg.authorize(src_group=sg, ip_protocol='icmp', from_port=(-1), to_port=(-1))
        sg.authorize(src_group=sg, ip_protocol='tcp', from_port=1, to_port=65535)
        sg.authorize(src_group=sg, ip_protocol='udp', from_port=1, to_port=65535)
    return sg
