Creating C# Serverless Project with .NET Core
In the previous section, we used Visual Studio and the AWS Toolkit to create our first AWS Lambda function with C#. Now we will create a more complex serverless project that contains Lambda functions and the API Gateway. We are going to use the AWS Toolkit and Visual Studio to create a serverless project. We will also explore the generated source code and deploy and test the project.
- Go to Visual Studio 2015 and create a new serverless project. Select
File
|New
|Project
. - Select
AWS Serverless Application
and clickOK
. - We are creating a little bit more complex application, so select the
Blog API using
DynamoDB
.
- Our serverless project has been created. There are two files that have been generated for us,
Blog.cs
file andFunctions.cs
file, as shown here:

In the Functions.cs
file, we find the function handlers that are used to implement the business logic for our Blog API. First, there is a constructor that sets up the context for our DynamoDB:
namespace...