I'm trying to get my .Net Core Web API Solution deployed to Elastic Beanstalk via CLI and I'm running into an issue. I am able to publish my project without errors and deploy the application successfully. My problem is that when I access the URL, I'm still seeing the Sample App.
Is there a config change that I can make to my app, or the web.config, or in Elastic Beanstalk that I should change to get my Web API deployed?
publish command
dotnet publish My.WebAPI/My.WebAPI.csproj --runtime win10-x64 --output my-api
web.config
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<location path="." inheritInChildApplications="false">
<system.webServer>
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" />
</handlers>
<aspNetCore processPath=".\MyWebAPI.exe" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" />
</system.webServer>
</location>
</configuration>
aws-windows-deployment-manifest.json
{
"manifestVersion": 1,
"deployments": {
"aspNetCoreWeb": [
{
"name": "my-webapi",
"parameters": {
"appBundle": ".",
"iisPath": "/",
"iisWebSite": "Default Web Site"
}
}
]
}
}