Skip to content

Commit

Permalink
chore: resources index lambda point to shared ES instance
Browse files Browse the repository at this point in the history
  • Loading branch information
GPaoloni committed Sep 11, 2024
1 parent 5a8ce0b commit 85ac08d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion resources-domain/lambdas/search-index/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,11 @@ export const executeBulk = async (
Object.keys(documentsByAccountSid).map(async accountSid => {
const documents = documentsByAccountSid[accountSid];
const client = (
await getClient({ accountSid, indexType: RESOURCE_INDEX_TYPE })
await getClient({
accountSid,
indexType: RESOURCE_INDEX_TYPE,
ssmConfigParameter: process.env.SSM_PARAM_ELASTICSEARCH_CONFIG,
})
).indexClient(resourceIndexConfiguration);
try {
const indexResp = await client.executeBulk({ documents });
Expand Down

0 comments on commit 85ac08d

Please sign in to comment.