I have built a web app using C#/.NET. When I try to upload it to AWS Elastic Beanstalk, I get the following:
ERROR [Instance: i-0e134450ccd949c9f] Command failed on instance. Return code: 1 Output: Engine execution has encountered an error..
ERROR Instance deployment failed. For details, see 'eb-engine.log'.
ERROR Instance deployment: Your source bundle has a single .NET Core application. You must include a file with a '.runtimeconfig.json' suffix. The deployment failed.
When I examined the logs, I found this:
{"status":"FAILURE","api_version":"1.0","results":[{"status":"FAILURE","msg":
"Engine execution has encountered an error.","returncode":1,"events":[{"msg":
"Instance deployment: Your source bundle has a single .NET Core application.
You must include a file with a '.runtimeconfig.json' suffix.
The deployment failed.","timestamp":1740742389065,"severity":"ERROR"},
{"msg":"Instance deployment failed.
The runtimeconfig.json file is definitely in my publish folder. Files in publish folder
A previous contributor advises that the answer is to only zip the contents of the publish folder and not the folder itself. I have tried to do so using: zip -r ../deployment.zip *. However, I keep getting the same error.
Can anyone help me to fix this or point out where I am going wrong?
Solution: If anyone encounters the same error, it can be fixed by updated publish folder and added Procfile