Hosting ASP.NET Core Web API on Amazon EC2 Linux Instance!
Includes Steps to Setup .NET Environment on a Linux Box.
Hi!
I wrote a new article that will take you through the step-by-step process of hosting ASP.NET Core WebAPI on Amazon EC2, a reliable and resizable computing service in the cloud. This will give you a more Hands-On experience of working directly on the Linux instance to set up the .NET environment as well as host your applications. We will be covering quite a lot of cool concepts along the way which will help you understand various DevOps-related practices as well.
What we will build:
➡️ An ASP.NET Core Web API which performs CRUD against a PostgreSQL database.
➡️ This Web API will have built-in docker support
➡️ docker-compose file with instructions to deploy both the application and database to docker containers.
➡️ The source code will be hosted on GitHub.
➡️ Boot up an EC2 Linux instance and pull in the source code from GitHub. All the required runtimes and SDKs will be installed on this instance.
➡️ SSH into this instance via PuTTY.
➡️ The .NET Application’s docker image will be built on the Linux Instance
➡️ Both the application and database will be deployed to containers in this instance.
➡️ A specific port on which the Web API is running will be exposed to the public.
Read the complete article here: https://codewithmukesh.com/blog/hosting-aspnet-core-webapi-on-amazon-ec2/