After upgrading to .net core 2.2, and upgrading to the latest AWS library versions, I encounter this runtime error during initialization:
[System.InvalidOperationException] The environment variable AWS_ENABLE_ENDPOINT_DISCOVERY was not set with a boolean value.
It looks like Amazon.Runtime.EnvironmentVariableAWSEndpointDiscoveryEnabled.EnvironmentVariableAWSEndpointDiscoveryEnabled()
tries to read this Environment variable.
What is strange is that it only occurs when running (in Debug mode) multiple Web API projects at the same time, and not when running a single project by itself.
Additional information:
- .NET Core run as In Process (w/IISExpress)
- We use it for Dynamo, Kms, CloudFront .NET libraries
- We didn't have any issue when running it in .net core 2.0
- AWSSDK.Core version 3.3.17.4
- AWSSDK.Extensions.NETCore.Setup version 3.3.3
- AWSSDK.Core version: 3.3.101.3
- AWSSDK.Extensions.NETCore.Setup version: 3.3.100.1