【发布时间】:2018-05-28 14:53:50
【问题描述】:
我在我的 AWS Lambda 中定义了几个环境变量,但是当我尝试在我的 .Net 代码中访问它们时,它们显示为空白。我错过了什么?
源代码:
public void CalculateInterimReviewsToBeCreated(Input input, ILambdaContext context)
{
var uri = new Uri(getFSRHistoryURL);
using (var httpClient = new HttpClient { BaseAddress = uri })
{
var authenticationHeaderKey = System.Environment.GetEnvironmentVariable("AuthenticationHeaderKey");
LambdaLogger.Log("CalculateInterimReviewsToBeCreated : authenticationHeaderKey" + authenticationHeaderKey);
...
}
...
}
【问题讨论】:
标签: c# .net amazon-web-services aws-lambda