Debug Sam CDK node typescript Lambda: "Bad handler" #4504
Labels
cdk
guidance
General information and guidance, answers to FAQs, or recommended best practices/resources.
language:node
debugging NodeJS / javascript / typescript lambdas using SAM local
sam
service:lambda
System details (run the
AWS: About Toolkit
command)Question
Hi, I have a test project with a lambda, based off: ( https://github.com/aws-samples/aws-saas-factory-ref-solution-serverless-saas ) I am able to invoke with sam local from the cli and it works perfectly, but vsCode debug fails, I am fairly sure it's a vsCode configuration issue.
note: I tried both
GetOrderLambdaHandle
andgetOrder
in thelambdaHandler
field of the configuration, same error.Thank You!
Details:
Cli Invoke ( Works ):
sam local invoke GetOrderLambdaHandle -e ./test/events/basicEvent.json -t ./cdk.out/OrderServiceStack.template.json
Basic Error:
Runtime.MalformedHandlerName","errorMessage":"Bad handler","stack":["Runtime.MalformedHandlerName: Bad handler"," at _splitHandlerString (file:///var/runtime/index.mjs:990:15)
Error and Supporting Details :
VS Code Config:
One Lambda:
Basic Stack:
The text was updated successfully, but these errors were encountered: