Trigger lambda function using API call when debugging using AWS .NET Mock Lambda Test Tool #1930
Replies: 1 comment
-
This version of the test tool doesn't support the request/response mode for posting Lambda events to process. We are actually working on a new version of this tooling that you can find here https://github.com/aws/aws-lambda-dotnet/tree/master/Tools/LambdaTestTool-v2. Admittedly the documentation is light right now as we are still in preview and our first focus is integrating the new tooling with .NET Aspire. We do have documentation coming from the .NET Aspire side via our tracker issue you can find here: aws/integrations-on-dotnet-aspire-for-aws#17. I would really appreciate if you could try your use case through .NET Aspire integration and see how it works for you. As part of the new version we have implemented the REST API that Lambda function and the .NET SDK uses to invoke Lambda functions. For example in .NET Aspire we launch a Lambda emulator and then you can grab the endpoint of the emulator and configure the SDK to use that to invoke Lambda functions. Something like the following.
Feel free to open issues on our AWS integrations for .NET Aspire repository if you have more questions on how to do this. I would really appreciate hearing any feedback on the tooling and .NET Aspire integration. |
Beta Was this translation helpful? Give feedback.
-
Anyway to trigger the lambda function using API call when debugging using AWS .NET Mock Lambda Test Tool. I tried POSTing events to the
/runtime/test-event
using Postman. I receive202 Accepted
response, but not hitting breakpoints in Visual Studio. Testing function from UI hits breakpoints as expected.Here's what I am trying to do.
I am creating Lambda for receiving Webhook calls from a third-party service. In production I would be using an API Gateway for triggering the Lambda. However, when developing it would be nice if AWS .NET Mock Lambda Test Tool provides a way to trigger the Lambda Function using API call.
Beta Was this translation helpful? Give feedback.
All reactions