Serverless Core

Purpose & Background

In this lab, you will create a simple ASP.NET Core Web, deploy to AWS Lambda using the Visual Studio leveraging the AWS Serverless Application Model (AWS SAM) to create the lambda function and the Amazon API Gateway as a proxy layer in front of the Web App.

A significant change with ASP.NET Core 2.0 is that Razor Pages are now precompiled at publish time. It means when our serverless Razor Pages are first rendered, Lambda compute time isn’t spent compiling the Razor Pages from cshtml to machine instructions; hence it makes possible to execute web app on top of lambda functions.

Lab Exercises

The following exercises should be completed in order for this lab:

  1. Create an AWS Serverless Application (.NET Core) Project

  2. Deploy to AWS Lambda

  3. Check the AWS resources created

  4. Change the .Net Razor and Re-deploy the lambda function

  5. Remove all the Resources deployed


The following are the prerequisites required in order to complete the lab: