I'm trying to build a basic dotnet core application and deploy it using the default tool available to me in AWS. I currently have the following steps working:
- Repository in CodeCommit
Checkin triggers CodeBuild build step on the Ubuntu image "aws/codebuild/dot-net:core-2.1" which runs the yml file(which creates the correct files I need to actually run the web app):
version: 0.2 phases: build: commands: - dotnet restore CMS/CMS.csproj - dotnet build CMS/CMS.csproj - dotnet publish CMS/CMS.csproj -o site artifacts: files: - CMS/site/**/* - CMS/aws-windows-deployment-manifest.json
aws-windows-deployment-manifest.json:
{
"manifestVersion": 1,
"deployments": {
"aspNetCoreWeb": [{
"name": "CMS",
"parameters": {
"appBundle": "./site",
"iisPath": "/",
"iisWebSite": "Default Web Site"
}
}
]
}
}
- CodeDeploy takes the artifacts and published them to an elastic beanstalk application configured to use windows. It's currently running the default application.
It runs through each step fine and I get green check marks throughout, but when I navigate to the EB instance the original site is still shown, showing me that my application hasn't been deployed. Is there something I'm missing?
I was really hoping I would be able to deploy an app from check in to finish without needing to modify a build environment, at least right now.