I use an Elastic Beanstalk Environment with multiple .NET Core 5.0 projects.
The Apps are running fine with my Procfile
api-user: dotnet ./api-user/api-user.dll --urls http://localhost:5000
api-shop: dotnet ./api-shop/shop.dll --urls http://localhost:5001
Unfortunately .NET seems to be unable to pick up the Configuration from my appsettings.json and appsettings.<ENVIRONMENT>.json files.
I logged all registered ConfigurationProviders in .NET and they are present as JsonConfigurationProvider
Also the files are present in the working directory. I checked that via SSH with:
cd var/app/current/api-user
cat appsettings.json
Configuration with appsettings.json works fine locally in Development and Production.
Why is this not the case for the cloud environment?