Skip to content

Commit 7fdfe6f

Browse files
authored
Eliminate unused Layer from streaming Lambda setup
Removed unused Layer configuration for Lambda function.
1 parent f63a5d6 commit 7fdfe6f

1 file changed

Lines changed: 1 addition & 12 deletions

File tree

packages/amplify-graphql-searchable-transformer/src/cdk/create-streaming-lambda.ts

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,7 @@ export const createLambda = (
3131
parameterMap.get(OpenSearchStreamingLambdaHandlerName)!.valueAsString,
3232
path.resolve(__dirname, '..', '..', 'lib', 'streaming-lambda.zip'),
3333
Runtime.PYTHON_3_12,
34-
[
35-
// Let's avoid using the Layer, it's only there to keep on bringing the 'requests' dependency
36-
// for people who transitively depend on it; but we don't, so we can use the version of boto3 that
37-
// comes with Lambda by default.
38-
/*
39-
LayerVersion.fromLayerVersionArn(
40-
scope,
41-
'LambdaLayerVersion',
42-
Fn.findInMap('LayerResourceMapping', Fn.ref('AWS::Region'), 'layerRegion'),
43-
),
44-
*/
45-
],
34+
[],
4635
lambdaRole,
4736
enviroment,
4837
undefined,

0 commit comments

Comments
 (0)