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

Viewed 158

aws gateway http for auth0 authentication

which works fine and iam getting body data in aws lambda

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

how to pass the body to aws firehose ?

1 Answers

Yes, you can use putRecord or putRecordBatch AWS SDK methods for JavaScript.

You will also need to add firehose permissions to your lamnda's execution role.

Related