def stop(name, call=None):
    '''
    Stop a node
    '''
    if call != 'action':
        raise SaltCloudSystemExit(
            'The stop action must be called with -a or --action.'
        )

    log.info('Stopping node %s', name)

    instance_id = _get_node(name)['instanceId']

    __utils__['cloud.fire_event'](
        'event',
        'stopping instance',
        'salt/cloud/{0}/stopping'.format(name),
        args={'name': name, 'instance_id': instance_id},
        sock_dir=__opts__['sock_dir'],
        transport=__opts__['transport']
    )

    params = {'Action': 'StopInstances',
              'InstanceId.1': instance_id}
    result = aws.query(params,
                       location=get_location(),
                       provider=get_provider(),
                       opts=__opts__,
                       sigver='4')

    return result