有什么方法可以将数据从 aws lambda 发送到 firehose

Is there any way to send data from aws lambda to firehose

用于 auth0 身份验证的 aws 网关 http

效果很好,我正在 aws lambda 中获取正文数据

exports.handler = async (event) => {
    // TODO implement
    const response = {
        statusCode: 200,
        body: JSON.stringify(event.body),
    };
    return response;
};

如何将正文传递给 aws firehose?

是的,您可以将 putRecord or putRecordBatch AWS SDK 方法用于 JavaScript。

您还需要为您的 lamnda 执行角色添加 firehose 权限。