serverless-patterns icon indicating copy to clipboard operation
serverless-patterns copied to clipboard

lambda-bedrock-response-streaming does not work - broken imports

Open shafkevi opened this issue 3 years ago • 2 comments

When deploying https://github.com/aws-samples/serverless-patterns/tree/main/lambda-bedrock-response-streaming, I receive an error in the lambda execution via curl of Unknown application error occurred Runtime.Unknown.

And when I invoke the function in the console, I get an error about the imports not being valid Cannot find package '@aws-sdk/client-bedrock-runtime' imported from /var/task/fn.mjs

shafkevi avatar Oct 31 '23 14:10 shafkevi

@mavi888 Please can you review?

jbesw avatar Nov 03 '23 16:11 jbesw

@shafkevi you need to run npm install inside the src folder and then deploy again.

mavi888 avatar Nov 13 '23 11:11 mavi888