AWSSDK.Extensions.NETCore.Setup 4.1.0.4

AWSSDK.Extensions.NETCore.Setup

Integrates the AWS SDK for .NET with Microsoft.Extensions.Configuration and Microsoft.Extensions.DependencyInjection: read AWS settings from your application's configuration and register service clients in the dependency injection container.

Getting started

Add an AWS section to appsettings.json:

{
  "AWS": {
    "Profile": "my-profile",
    "Region": "us-west-2"
  }
}

Register the options and the service clients you need. Each service client comes from its own package (AWSSDK.S3, AWSSDK.DynamoDBv2, ...).

using Amazon.DynamoDBv2;
using Amazon.S3;

var builder = WebApplication.CreateBuilder(args);

builder.Services.AddDefaultAWSOptions(builder.Configuration.GetAWSOptions());
builder.Services.AddAWSService<IAmazonS3>();
builder.Services.AddAWSService<IAmazonDynamoDB>();

Then take the client as a constructor parameter:

public class UploadService(IAmazonS3 s3) { }

Clients are registered as singletons by default, which is the recommended lifetime because service clients are thread-safe and relatively expensive to construct; pass a ServiceLifetime to change that. Without an AWS section, the clients use the SDK's default credential and region resolution.

More options

  • GetAWSOptions().CreateServiceClient<T>() creates a client from the configuration without dependency injection.
  • GetAWSOptions("SectionName") reads the settings from a section other than AWS.
  • AddAWSService<T>(options) gives one client its own AWSOptions, for example a different region.
  • AddKeyedAWSService<T>(key) registers a client as a keyed service, so the same interface can be registered more than once (.NET 8 and later).
  • TryAddAWSService<T>() registers the client only when the interface isn't registered already.

Resources

Showing the top 20 packages that depend on AWSSDK.Extensions.NETCore.Setup.

Packages Downloads
Amazon.Extensions.Configuration.SystemsManager
.NET Configuration Extensions for AWS Systems Manager
367
Amazon.Extensions.Configuration.SystemsManager
.NET Configuration Extensions for AWS Systems Manager
161
Amazon.Extensions.Configuration.SystemsManager
.NET Configuration Extensions for AWS Systems Manager
108
Amazon.AspNetCore.Identity.Cognito
Simplifies using Amazon Cognito as a membership storage solution for building ASP.NET Core web applications using ASP.NET Core Identity.
52
Amazon.Extensions.Configuration.SystemsManager
.NET Configuration Extensions for AWS Systems Manager
44
Amazon.Extensions.Configuration.SystemsManager
.NET Configuration Extensions for AWS Systems Manager
39
Amazon.AspNetCore.Identity.Cognito
Simplifies using Amazon Cognito as a membership storage solution for building ASP.NET Core web applications using ASP.NET Core Identity.
36
Amazon.Extensions.Configuration.SystemsManager
.NET Configuration Extensions for AWS Systems Manager
35
Amazon.Extensions.Configuration.SystemsManager
.NET Configuration Extensions for AWS Systems Manager
33
Amazon.AspNetCore.Identity.Cognito
Simplifies using Amazon Cognito as a membership storage solution for building ASP.NET Core web applications using ASP.NET Core Identity.
32
Amazon.AspNetCore.Identity.Cognito
Simplifies using Amazon Cognito as a membership storage solution for building ASP.NET Core web applications using ASP.NET Core Identity.
30
Amazon.Extensions.Configuration.SystemsManager
.NET Configuration Extensions for AWS Systems Manager
30
Amazon.Extensions.Configuration.SystemsManager
.NET Configuration Extensions for AWS Systems Manager
29

Version Downloads Last updated
4.1.0.4 1 12/03/2026
4.1.0.3 5 11/25/2026
4.1.0.2 2 11/26/2026
4.1.0.1 1 11/26/2026
4.1.0 7 11/14/2026
4.0.102.11 8 11/14/2026
4.0.102.10 7 11/09/2026
4.0.102.9 8 11/09/2026
4.0.102.8 8 11/07/2026
4.0.102.7 20 11/01/2026
4.0.102.6 11 10/24/2026
4.0.102.5 5 10/23/2026
4.0.102.4 14 10/15/2026
4.0.102.3 18 10/12/2026
4.0.102.2 10 10/09/2026
4.0.102.1 15 10/02/2026
4.0.102 13 10/03/2026
4.0.101.4 18 09/18/2026
4.0.101.3 11 09/13/2026
4.0.101.2 13 09/08/2026
4.0.101.1 13 08/29/2026
4.0.101 12 08/23/2026
4.0.100.9 12 08/24/2026
4.0.100.8 9 08/12/2026
4.0.100.7 18 07/29/2026
4.0.100.6 18 07/24/2026
4.0.100.5 11 07/18/2026
4.0.100.4 18 07/16/2026
4.0.100.3 13 07/13/2026
4.0.100.2 18 07/04/2026
4.0.100.1 15 07/04/2026
4.0.100 15 07/06/2026
4.0.4.11 16 06/24/2026
4.0.4.10 16 06/22/2026
4.0.4.9 20 06/24/2026
4.0.4.8 14 07/01/2026
4.0.4.7 13 06/29/2026
4.0.4.6 14 06/12/2026
4.0.4.5 15 06/22/2026
4.0.4.4 18 06/07/2026
4.0.4.3 18 06/22/2026
4.0.4.2 17 05/30/2026
4.0.4.1 17 06/22/2026
4.0.4 14 07/01/2026
4.0.3.40 17 05/30/2026
4.0.3.39 16 06/22/2026
4.0.3.38 16 05/14/2026
4.0.3.37 16 06/24/2026
4.0.3.36 15 06/29/2026
4.0.3.35 21 04/28/2026
4.0.3.34 20 06/23/2026
4.0.3.33 20 04/14/2026
4.0.3.32 14 06/29/2026
4.0.3.31 16 04/04/2026
4.0.3.30 27 06/25/2026
4.0.3.29 16 06/22/2026
4.0.3.28 19 04/01/2026
4.0.3.27 12 07/06/2026
4.0.3.26 16 03/24/2026
4.0.3.25 19 06/24/2026
4.0.3.24 18 06/30/2026
4.0.3.23 17 07/01/2026
4.0.3.22 18 02/01/2026
4.0.3.21 18 01/28/2026
4.0.3.20 25 01/30/2026
4.0.3.19 19 06/22/2026
4.0.3.17 19 12/19/2025
4.0.3.16 12 06/24/2026
4.0.3.15 18 06/24/2026
4.0.3.14 15 11/28/2025
4.0.3.13 17 07/03/2026
4.0.3.12 17 07/01/2026
4.0.3.11 25 11/09/2025
4.0.3.10 17 06/28/2026
4.0.3.9 21 06/24/2026
4.0.3.8 17 10/24/2025
4.0.3.7 22 10/19/2025
4.0.3.6 24 06/22/2026
4.0.3.5 18 06/22/2026
4.0.3.4 23 10/04/2025
4.0.3.3 27 10/01/2025
4.0.3.2 17 06/22/2026
4.0.3.1 16 06/22/2026
4.0.3 24 09/18/2025
4.0.2.2 27 08/22/2025
4.0.2.1 19 08/17/2025
4.0.2 18 06/22/2025
4.0.1 24 06/16/2025
4.0.0 27 05/03/2025
4.0.0-preview.13 13 07/01/2026
4.0.0-preview.12 18 04/07/2025
4.0.0-preview.11 21 03/28/2025
4.0.0-preview.10 24 03/24/2025
4.0.0-preview.9 18 06/22/2026
4.0.0-preview.8 17 06/22/2026
4.0.0-preview.7 19 06/22/2026
4.0.0-preview.6 22 02/15/2025
4.0.0-preview.5 25 01/12/2025
4.0.0-preview.4 19 10/15/2024
4.0.0-preview.3 25 10/09/2024
4.0.0-preview.2 25 09/30/2024
4.0.0-preview 24 08/24/2024
3.7.400.2 20 06/22/2026
3.7.400.1 15 06/22/2026
3.7.400 20 06/23/2026
3.7.301 104 06/14/2024
3.7.300 68 12/31/2023
3.7.7 25 01/02/2024
3.7.6 22 01/09/2024
3.7.5 17 12/12/2023
3.7.4 416 03/13/2023
3.7.3 18 12/12/2023
3.7.2 17 01/09/2024
3.7.1 226 08/10/2021
3.7.0.1 21 01/09/2024
3.7.0 18 01/09/2024
3.3.101 17 01/05/2024
3.3.100.1 27 03/08/2021
3.3.100 24 01/09/2024
3.3.6 22 02/28/2022
3.3.5 14 01/11/2024
3.3.4 17 12/12/2023
3.3.3 19 01/09/2024
3.3.1 24 12/19/2023
3.3.0.3 25 01/10/2024
3.3.0.2 19 12/12/2023
3.3.0.1 21 01/09/2024
3.3.0 22 12/12/2023
3.2.8-rc 27 01/10/2024