How to correctly deploy a NodeJS Lambda Function from Visual Studio 2022

0

Hello, I've been using AWS Lambda function for a while, using VS2022 as IDE, but only today I've realized that the published packages contains a lot of useless node_modules. I've created the project using the VS Template and selecting AWS Lambda Function (Node.js). My lambda function in this particular example only wtites data using AWS.DynamoDB.DocumentClient(); but when it's uploaded it's 10 MB, that's almost the size of the zipped folder.. The npm installed are the default ones that I've when creating a project, so the zip package can just contain the js file.

Any suggestion?

preguntada hace 2 años105 visualizaciones
No hay respuestas

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas