Closed 101Lizardman closed 5 years ago
Shane Vincent - 03/04/2019 Nhi Nguyen - 03/04/2019
There are several systems that we could use to run .NET core on AWS. Any selected must meet these requirements:
Have decided to use AWS Elastic Beanstalk
How to setup an AWS Elastic Beanstalk server: Requirements:
Costs:
Open the Elastic Beanstalk Console
For Platform, select .NET from the dropdown.
When setting up a sample environment, I setup a Sample application as the Application Code. Here, it is possible to upload our own .NET code.
Click Review and Launch.
Creating the environment will take about 10 minutes to complete. Once it is completed, the environment information that is displayed at the top of the page will reveal the URL of the web server that is running:
Navigate to the URL and this message will be displayed if the server is running successfully:
Code can be uploaded and deployed straight on the web interface or can be deployed through the AWS toolkit for Visual Studio.
Download and configure the AWS Visual Studio Toolkit
In Visual Studio, open your project.
On the View Menu, choose Solution Explorer.
Expand the Solution of your project.
Right click on your App and then select Publish to AWS.
On the Publish to AWS Elastic Beanstalk page, for Target Deployment, choose the environment that we have created, then click Next.
On the Application Options page, accept all of the defaults and then choose Next.
On the Review page, choose Deploy.
After deployment, the Output box displays feedback.
Check the Elastic Beanstalk Console to see if the application was successfully deployed.
If you wish to terminate the environment. If you are interested in saving the database in a snapshot, ensure that in the configuration of the database it is set to be snapshotted, rather than deleted.
Very good
Finding out how to run ASP .NET on an AWS service.