Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update all dependent projects, docs, and examples to fix S3 startup delay #73

Open
lilith opened this issue Feb 24, 2023 · 1 comment
Open

Comments

@lilith
Copy link
Member

lilith commented Feb 24, 2023

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.

@lilith lilith changed the title S3 startup delay Update all dependent projects, docs, and examples to fix S3 startup delay Feb 25, 2023
@lilith
Copy link
Member Author

lilith commented Feb 25, 2023

Per aws/aws-sdk-net#2546 the workaround is to specify DefaultConfigurationMode = DefaultConfigurationMode.Standard

services.AddAWSService<IAmazonS3>(new AWSOptions 
{
    Credentials = new AnonymousAWSCredentials(),
    Region = RegionEndpoint.USEast1,
    DefaultConfigurationMode = DefaultConfigurationMode.Standard
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant