Skip to content

Instantly share code, notes, and snippets.

@tomfanning
Created October 26, 2018 09:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomfanning/43d8f3bd8de43b4b4d14a9539aa4426d to your computer and use it in GitHub Desktop.
Save tomfanning/43d8f3bd8de43b4b4d14a9539aa4426d to your computer and use it in GitHub Desktop.
AWS Elastic Beanstalk / .NET Core web app quick demo
VS -> new solution -> .NET Core 2.1 web app (MVC)
untick HTTPS
restore packages
Run locally
Close
Right click
Publish
Choose folder-> publish
Publish immediately
Open publish folder
Select all -> zip
paste the following JSON into aws-windows-deployment-manifest.json
{
"manifestVersion": 1,
"deployments": {
"aspNetCoreWeb": [
{
"name": "mytestapp",
"parameters": {
"appBundle": "publish.zip",
"iisPath": "/",
"iisWebSite": "Default Web Site"
}
}
]
}
}
zip up publish.zip and the manifest into a new zip
Create new application
Create environment -> web server environment
Platform -> .NET
More options -> instance type t2.medium, 30gb ssd
Create env
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment