From 759e683d92c2e63c5c574568c099f5a007003164 Mon Sep 17 00:00:00 2001 From: Danielle Adams Date: Thu, 29 Jul 2021 11:55:53 -0400 Subject: [PATCH] refactor(graphql-searchable-transformer): change ES_ env vars to OPENSEARCH_ --- .../src/cdk/create-streaming-lambda.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/amplify-graphql-searchable-transformer/src/cdk/create-streaming-lambda.ts b/packages/amplify-graphql-searchable-transformer/src/cdk/create-streaming-lambda.ts index 9b18742b4fd..14480dd2eef 100644 --- a/packages/amplify-graphql-searchable-transformer/src/cdk/create-streaming-lambda.ts +++ b/packages/amplify-graphql-searchable-transformer/src/cdk/create-streaming-lambda.ts @@ -19,10 +19,10 @@ export const createLambda = ( const { OpenSearchStreamingLambdaFunctionLogicalID } = ResourceConstants.RESOURCES; const { OpenSearchStreamingLambdaHandlerName, OpenSearchDebugStreamingLambda } = ResourceConstants.PARAMETERS; const enviroment: { [key: string]: string } = { - ES_ENDPOINT: 'https://' + endpoint, - ES_REGION: region, + OPENSEARCH_ENDPOINT: 'https://' + endpoint, + OPENSEARCH_REGION: region, DEBUG: parameterMap.get(OpenSearchDebugStreamingLambda)!.valueAsString, - ES_USE_EXTERNAL_VERSIONING: isProjectUsingDataStore.toString(), + OPENSEARCH_USE_EXTERNAL_VERSIONING: isProjectUsingDataStore.toString(), }; return apiGraphql.host.addLambdaFunction(