crooked-microphone-43180
05/28/2022, 5:19 PMnode_modules
folder. One function might use one package while another doesn't but function serialization doesn't discriminate what packages are being used. This means that they all grow in size as more packages are included in the stack/project. Has anyone ran across this issue? The compressed zip can't be over 50MB and when uncompressed, over 250MB. I know you can instead utilize a container to run the Lambda function, but how would you call aws functions inside of it (like s3.putObject
) without just importing the aws-cli and executing it?Payload
. Not really that elegant of a solution but it works 🤷
const json = JSON.stringify({
bucketId: bucket.get()
});
const lambdaResponse = await lambda.invoke({
FunctionName: containerLambdaFunction.get(),
Payload: json
}).promise();
glamorous-spring-30202
07/22/2022, 10:18 PM