'Set metadata for an instance.
:param boto.ec2.instance.Instance instance: The instance to configure.
:param dict metadata: The tag-value metadata.'

def _set_metadata(self, instance, metadata):

    try:
        self._connection.create_tags([instance.id], metadata)
        return True
    except EC2ResponseError as e:
        _check_response_error(e, u'flocker:provision:aws:set_metadata:retry')
    return False
