aws / aws-lambda-dotnet

Libraries, samples and tools to help .NET Core developers develop AWS Lambda functions.
Apache License 2.0
1.58k stars 478 forks source link

Http end point ability in LamdaTestTool #1279

Open nishant-newton opened 2 years ago

nishant-newton commented 2 years ago

Describe the feature

We can debug the Lambda function from the web page of this LamdaTestTool. This new feature will allow to create the http end points so that lambda functions can be called through http in the local environment for debugging purpose

Use Case

When Lambda functions are called through http protocol i can't debug them in Visual Studio and if there are multiple lambda functions involved in microservice architecture pattern then debugging is a nightmare

Proposed Solution

Creating the http mapping for the request. The tool already parses the yml file and map the handler and function name. yml file also contains the http end point details for AWS Api Gateway. Once http requests are handled, the logic from index.razor file can be put in some service class.

Other Information

The Lamda functions are tightly coupled with the infrastructure. As a Developer i want to have an experience where i could debug solutions locally and if there are multiple projects involved and they make http calls to each, i should be able to debug them locally

Acknowledgements

AWS .NET SDK and/or Package version used

LamdaTestTool does not use AWS SDK

Targeted .NET Platform

.NET 3.1, .NEt 5.0, .NET 6.0

Operating System and version

Windows, Linux, Mac

ashishdhingra commented 2 years ago

Result of https://github.com/aws/aws-lambda-dotnet/issues/1169#issuecomment-1225015482. Needs review with the team. @nishant-newton Feel free to submit the PR which could be reviewed by the team.

nishant-newton commented 2 years ago

Thanks @ashishdhingra PR submitted https://github.com/aws/aws-lambda-dotnet/pull/1330 @normj FYI