Skip to content

Commit

Permalink
chore: resources search point to shared ES instance
Browse files Browse the repository at this point in the history
  • Loading branch information
GPaoloni committed Oct 17, 2024
1 parent 7bcd357 commit a63e058
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/elasticsearch-client/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ const getEsConfig = async ({
return JSON.parse(await getSsmParameter(ssmConfigParameter));
}

// TODO: remove this if it's not used anymore?
return JSON.parse(await getSsmParameter(getConfigSsmParameterKey(indexType)));
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ export const resourceService = () => {
await getClient({
accountSid,
indexType: RESOURCE_INDEX_TYPE,
ssmConfigParameter: process.env.SSM_PARAM_ELASTICSEARCH_CONFIG,
})
).searchClient(searchConfiguration);
const { generalSearchTerm, ...esSearchParameters } = {
Expand Down

0 comments on commit a63e058

Please sign in to comment.