We can create nodejs server-less web application on AWS Lambda by using aws-serverless-express. Similarly, you can create ASP.Net Core Serverless web application on AWS Lambda.
Virtual private server is not required.
Let’s begin to build serverless AspNetCore web application.
1. Install AWS Tool Kit for Visual Studio
The AWS tool kit for visual studio is a extension that make it easy to develop .net application using Amazon web service. You can download from the following URL.
2. Create a new AWS Serverless Application.
Choose “AWS Serverless Application” in “Create a new project” window. You can find aws project items by filtering “aws” keyword.
3. Add permission for publishing.
Publishing process build many functions such as Lambda function. Add permissions in IAM Management Console window.
Following is a AWS IAM Permission, but add extra permission if required.
- Lambda full access
- IAM Full access
- Amazon API Gateway Full Access
- CloudFormation Full Access
It may not required full access permission, but I add full access permission for quickly building.
4. Publishing to aws Lambda function.
click “publish to aws lambda” from the context menu on solution explore.
Choose AWS profile. Next, input stack name and S3 bucket. Finally, click publish button.
When Publishing process finished successfully, lambda function is created like this screen.
5. Access the web page
Access API Gateway window on AWS Console. API which is created by publishing process, click “stage” from left menu and click URL you can see on this screen.
Then, you will see the following screen.
You can build Serverless ASP.NET CORE web application on AWS lambda by using this procedure. Since dedicated server is not required, a web application can be built at low cost.
I hope this procedure is one of the options for developing web application.