Create AWS Lambda function with .NET Core / C# | Part #1

This blog explains how you can create an AWS Lambda function with .NET Core / C# as runtime.

Step 1 – Create function

Step 1.1 – Login to your AWS account, and select “Lambda from the services”

image

Step 1.2 – Click “Create Function”

image

Step 1.3 – Choose “Author From scratch”

image

There are advanced templates available, but I am keeping those out of the scope of this article.

Now fill,

  • Function name
  • Runtime, our case .NET Core (I am choosing the version .NET Core 3.1, which is the latest version when writing this article)

Click “Create function”

image

Usually it will take 10 to 15 seconds to get the function created. Once finished, you will be redirected to the Designer page.

Step 2 – Test the function

Step 2.1 – Configure test events – Select the test events drop down item

image

Step 2.2 – Fill in Event Name and enter some test input value (the built in template function is not expecting any input but we will require this when trying API Gateway in Part #2 blog) and click “Create”

image

Step 2.3 – Click “Test” button to test the function

Test result should show like this:

image

In Part #2 we will see how you can create a custom .NET Core function and deploy to AWS Lambda.