AWS Lambda with Nancy sample project.
Uses AwsLambdaOwin to proxy an AWS API Gateway request to an OWIN AppFunc.
The main file of interest is LancyProxyFunction
where the AppFunc is created in the Init()
method.
cd .\Lancy\src\Lancy\
dotnet restore
dotnet lambda package -c Release -f netcoreapp1.0 -o Lancy.zip
Upload Lancy.zip
to AWS Lambda and set the function handler to Lancy::Lancy.LancyProxyFunction::FunctionHandler
.
Here is a tutorial on creating your first HelloWorld Lambda Function in .NET