Created
October 26, 2018 09:55
-
-
Save tomfanning/43d8f3bd8de43b4b4d14a9539aa4426d to your computer and use it in GitHub Desktop.
AWS Elastic Beanstalk / .NET Core web app quick demo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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