Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Using a Procfile to configure your .NET Core on Linux Elastic Beanstalk environment

Focus mode
Using a Procfile to configure your .NET Core on Linux Elastic Beanstalk environment - AWS Elastic Beanstalk

To run multiple applications on the same web server, you must include a Procfile in your source bundle that tells Elastic Beanstalk which applications to run.

We recommend that you always provide a Procfile in the source bundle with your application. This way you precisely control which processes Elastic Beanstalk runs for your application and which arguments these processes receive.

The following example uses a Procfile to specify two applications for Elastic Beanstalk to run on the same web server.

Example Procfile
web: dotnet ./dotnet-core-app1/dotnetcoreapp1.dll web2: dotnet ./dotnet-core-app2/dotnetcoreapp2.dll

For details about writing and using a Procfile, see Buildfile and Procfile.

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.