DEV Community

Discussion on: Deploy a .NET Core Web API with AWS Lambda and the serverless framework

Collapse
 
neetika123 profile image
neetika123

hi Bastian,
First of all nice article,

  1. I tried the same approach and steps but not getting the output.
  2. I didn't get this 'FunctionHandlerAsync' is this inbuilt defined function via dotnet handler: exampleservice::exampleservice.LambdaEntryPoint::FunctionHandlerAsync
  3. want few explanation on deployment process. If you have to use CI/CD process then steps would be same or different ?
Collapse
 
schwamster profile image
Bastian

thanks, glad you enjoyed it.

2) Did you add the LambdaEntryPoint.cs file as described in "Add the lambda entry point (handler)"? In that file you derrive from the class "APIGatewayProxyFunction" that does contain the FunctionHandlerAsync => github.com/aws/aws-lambda-dotnet/b... This class is part of the nuget package "Amazon.Lambda.AspNetCoreServer" that you added in the section before

3) yes there would be no real difference. you would build and deploy. Optimally you have a build image prepared that has all of the necessary tools, .net core sdk, serverless framework, lambda tools. You might want to pass some parameters to the serverless framework if you for example want to deploy to different environments (serverless.com/framework/docs/prov...)

Hope this helps