Difference between revisions of "Publish Project to AWS"

From MgmtWiki
Jump to: navigation, search
(Deployment File)
(Solution)
Line 11: Line 11:
 
* [https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/dotnet-manifest.html Running multiple applications and ASP.NET core applications with a deployment manifest]
 
* [https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/dotnet-manifest.html 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.
 
* 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.
  
 
  {
 
  {
Line 25: Line 26:
 
   }
 
   }
 
  }
 
  }
 +
 +
Example dotnet-core-bundle.zip
 +
-- aws-windows-deployment-manifest.json
 +
-- dotnet-core-app.zip
  
 
==References==
 
==References==

Revision as of 11:23, 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

  1. Prepare a project with all dependencies marked.
  2. Add a deployment file (see section below)

Deployment File

{
 "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

References