AWS Elastic Beanstalk environment variables in ASP.NET Core 1.0

后端 未结 9 2007
误落风尘
误落风尘 2020-12-01 02:59

How do I get environment variables from elastic beanstalk into an asp.net core mvc application? I have added a .ebextensions folder with app.config file in it with the follo

9条回答
  •  失恋的感觉
    2020-12-01 03:32

    AWS addressed this issue in the Elastic Beanstalk Windows Server platform update on June 29, 2020:

    Previously, Elastic Beanstalk didn't support passing environment variables to .NET Core applications and multiple-application IIS deployments that use a deployment manifest [1]. The Elastic Beanstalk Windows Server platform update on June 29, 2020 [2] now fixes this gap. For details, see Configuring your .NET environment in the Elastic Beanstalk console [3].

    [1] https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/dotnet-manifest.html

    [2] https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2020-06-29-windows.html

    [3] https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create_deploy_NET.container.console.html#dotnet-console

提交回复
热议问题