-
Notifications
You must be signed in to change notification settings - Fork 478
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invoke Lambda via Http API inside Lambda Test Tool #1343
Comments
Hi @ashishdhingra! [HttpPost("execute")]
public async Task<IActionResult> ExecuteFunction()
{...}
[HttpPost("execute/{functionName}")]
[HttpPost("2015-03-31/functions/{functionName}/invocations")]
public async Task<object> ExecuteFunction(string functionName)
{...} Lambda Test Tool will be support for the standard lambda client from the var client = new AmazonLambdaClient(new AmazonLambdaConfig
{
EndpointProvider = new StaticEndpointProvider("http://localhost:5050/invokeapi/")
}); With support of transferring not only payload, but also logs ( What do you think of this approach? Code is ready and I could have a PR ready tomorrow. |
@ggaller Thanks for your response. Feel free to submit the PR which could be reviewed by the team. |
@ashishdhingra PR #1349 is ready and waiting for the team's decision. |
Hi @ashishdhingra. Any chance that the team looks at this issue and related PR? |
Hi @normj! |
Hi @ggaller, |
Hi @jeroenvervaeke, |
Describe the feature
Adding http API to Lambda Test Tool as another way to call the function, along with web interface and CLI.
Use Case
In our games we build the server part on the Lambda function. With HTTP endpoint we could write a mock client and connect to the function running from the IDE with the possibility of debugging. It would be a normal local server listening on
localhost
.Proposed Solution
I prepared a simple example that works. This is a controller with route to execute endpoint. It used injected
LocalLambdaOptions
and select defaultLambdaConfigInfo
from it. Right now only payload is passed, but maybe we need to extend the api to be able to specify the function that we need to execute.Other Information
No response
Acknowledgements
AWS .NET SDK and/or Package version used
Targeted .NET Platform
.NET 6
Operating System and version
Windows, Linux, MacOS
The text was updated successfully, but these errors were encountered: