Skip to content

Include aws-sdk-js-v3 clients in the Lambda runtime. #2149

Closed
@ghost

Description

Related Problem

Decrease the uploaded Lambda ZIP by providing the client libraries in the runtime container, just as aws-sdk v2

I have a Lambda function which is triggered with DynamoDB streams, and the following is the only import in my function:

import { DynamoDBClient } from '@aws-sdk/client-dynamodb'

The uploaded ZIP function takes 4.8 MB. This is too much and removes the benefit of using modularized v3. I just tried out excluding the packages if v3 is provided in the runtime environment just as v2, i.e., aws-sdk.

In that case, I cannot see a benefit of using aws-sdk v3.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions