Open lilith opened 1 year ago
Per https://github.com/aws/aws-sdk-net/issues/2546 the workaround is to specify DefaultConfigurationMode = DefaultConfigurationMode.Standard
services.AddAWSService<IAmazonS3>(new AWSOptions
{
Credentials = new AnonymousAWSCredentials(),
Region = RegionEndpoint.USEast1,
DefaultConfigurationMode = DefaultConfigurationMode.Standard
});
There's a bug in AWSSDK that can cause a 30 second startup delay if the "AWS_REGION=us-west-2" environment variable doesn't exist, despite the fact we provide that configuration in code.