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.
The following exercises should be completed in order for this lab:
Create an AWS Serverless Application (.NET Core) Project
Deploy to AWS Lambda
Check the AWS resources created
Change the .Net Razor and Re-deploy the lambda function
Remove all the Resources deployed
The following are the prerequisites required in order to complete the lab:
Microsoft Visual Studio 2017 or above installed on your computer