This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const aws4 = require('aws4') | |
const host = process.env.OPENSEARCH_ENDPOINT | |
module.exports.default = async function handler( | |
event, | |
context, | |
) { | |
const fetch = (await import('node-fetch')).default | |
const indexName = 'example' |