AWS Beanstalk Platform .NET Core running on 64bit Amazon Linux 2/2.0.2 Publish Version Error

1.7k Views Asked by At

enter image description here, enter image description hereI am trying to Publish my Elastic Beanstalka .NetCore Project Using Azure DevOps Pipeline, But Azure DevOps Pipeline also comes up to Beanstalk Publish without any problem in Restore, Build, Publish Steps, but I get the following error in AWS Beanstalka Log file. Project .Net Core 2.2 In the Document of AWS: https://docs.amazonaws.cn/en_us/elasticbeanstalk/latest/platforms/platforms-supported.html#platforms-supported.dotnetlinux

[INFO] Executing instruction: RunAppDeployPreBuildHooks
[INFO] The dir .platform/hooks/prebuild/ does not exist in the application. Skipping this step...
[INFO] Executing instruction: CheckProcfileForDotNetCoreApplication
[INFO] checking application and updating executable file permissions...
[INFO] checking Procfile...
[ERROR] An error occurred during execution of command [app-deploy] - [CheckProcfileForDotNetCoreApplication]. Stop running the command. Error: there is no .runtimeconfig.json file for your single application. Please provide a valid application 
1

There are 1 best solutions below

2
On

I am having the same issue.

I don't know if this is the answer, as I am new to AWS, but I have found:

  1. The instructions at https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/dotnet-core-tutorial.html only work if you create the Environment with a Windows server. It doesn't actually come right out and say that. It says:
  1. For Platform, select the platform and platform branch that match the language used by your application.

But in the next section, it says:

IIS is the web server that runs the application on the Amazon EC2 instances in your Elastic Beanstalk environment.

And IIS only runs on Windows. So this implies the instructions are for Windows.

  1. If you want to use Linux, just use the site.zip file these instructions have you create and upload that. You don't need the manifest file or the zip-within-zip. Just upload the site.zip.