Difference between revisions of "Publish Project to AWS"
From MgmtWiki
(→Deployment File) |
(→Solution) |
||
Line 5: | Line 5: | ||
==Problems== | ==Problems== | ||
==Solution== | ==Solution== | ||
+ | From the website [https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/dotnet-core-tutorial.html Deploying an ASP.NET core application with Elastic Beanstalk]. | ||
# Prepare a project with all dependencies marked. | # Prepare a project with all dependencies marked. | ||
# Add a deployment file (see section below) | # Add a deployment file (see section below) |
Revision as of 11:28, 5 June 2020
Full Title or Meme
Build and zip a Visual Studio dot net core 2.1+ Project for publication to Amazon Web Services.
Context
Problems
Solution
From the website Deploying an ASP.NET core application with Elastic Beanstalk.
- Prepare a project with all dependencies marked.
- Add a deployment file (see section below)
Deployment File
- From the website Running multiple applications and ASP.NET core applications with a deployment manifest
- name file aws-windows-deployment-manifest.json in the project directory with "Build Action" : "Content" and "Copy to Output Directory" : "Copy always"
- Bundle the manifest and site archive in a ZIP archive to create a source bundle.
{ "manifestVersion": 1, "deployments": { "aspNetCoreWeb": [ { "name": "my-dotnet-core-app", "parameters": { "archive": "dotnet-core-app.zip" } } ] } }
Example dotnet-core-bundle.zip -- aws-windows-deployment-manifest.json -- dotnet-core-app.zip