AWSSDK.Extensions.NETCore.Setup
4.1.0.3
Prefix Reserved
dotnet add package AWSSDK.Extensions.NETCore.Setup --version 4.1.0.3
NuGet\Install-Package AWSSDK.Extensions.NETCore.Setup -Version 4.1.0.3
<PackageReference Include="AWSSDK.Extensions.NETCore.Setup" Version="4.1.0.3" />
<PackageVersion Include="AWSSDK.Extensions.NETCore.Setup" Version="4.1.0.3" />
<PackageReference Include="AWSSDK.Extensions.NETCore.Setup" />
paket add AWSSDK.Extensions.NETCore.Setup --version 4.1.0.3
#r "nuget: AWSSDK.Extensions.NETCore.Setup, 4.1.0.3"
#:package AWSSDK.Extensions.NETCore.Setup@4.1.0.3
#addin nuget:?package=AWSSDK.Extensions.NETCore.Setup&version=4.1.0.3
#tool nuget:?package=AWSSDK.Extensions.NETCore.Setup&version=4.1.0.3
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 thanAWS.AddAWSService<T>(options)gives one client its ownAWSOptions, 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
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. net11.0 is compatible. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- AWSSDK.Core (>= 4.1.1.1)
- Microsoft.Extensions.Configuration.Abstractions (>= 2.0.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 2.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 2.0.0)
-
net10.0
- AWSSDK.Core (>= 4.1.1.1)
- Microsoft.Extensions.Configuration.Abstractions (>= 2.0.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 2.0.0)
-
net11.0
- AWSSDK.Core (>= 4.1.1.1)
-
net8.0
- AWSSDK.Core (>= 4.1.1.1)
- Microsoft.Extensions.Configuration.Abstractions (>= 2.0.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 2.0.0)
NuGet packages (231)
Showing the top 5 NuGet packages that depend on AWSSDK.Extensions.NETCore.Setup:
| Package | Downloads |
|---|---|
|
Amazon.Extensions.Configuration.SystemsManager
.NET Configuration Extensions for AWS Systems Manager |
|
|
Amazon.AspNetCore.DataProtection.SSM
AWS Systems Manager ASP.NET Core Data Protection Provider library allows you to use AWS Systems Manager's Parameter Store to store keys generated by ASP.NET's Data Protection API. |
|
|
Elasticsearch.Net.Aws
Enables request signing necessary for using the AWS Elasticsearch service. |
|
|
Kralizek.Extensions.Configuration.AWSSecretsManager
AWS Secrets Manager configuration provider implementation for Microsoft.Extensions.Configuration. |
|
|
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. |
GitHub repositories (23)
Showing the top 20 popular GitHub repositories that depend on AWSSDK.Extensions.NETCore.Setup:
| Repository | Stars |
|---|---|
|
microsoft/semantic-kernel
Integrate cutting-edge LLM technology quickly and easily into your apps
|
|
|
OrchardCMS/OrchardCore
Orchard Core is an open-source modular and multi-tenant application framework built with ASP.NET Core, and a content management system (CMS) built on top of that framework.
|
|
|
BrighterCommand/Brighter
A framework for building messaging apps with .NET and C#.
|
|
|
aws/aws-lambda-dotnet
Libraries, samples and tools to help .NET Core developers develop AWS Lambda functions.
|
|
|
erwinkramer/bank-api
The Bank API is a design reference project suitable to bootstrap development for a compliant and modern API.
|
|
|
getsentry/sentry-dotnet
Sentry SDK for .NET
|
|
|
exceptionless/Exceptionless.Net
Exceptionless clients for the .NET platform
|
|
|
aws/aws-extensions-for-dotnet-cli
Extensions to the dotnet CLI to simplify the process of building and publishing .NET Core applications to AWS services
|
|
|
J-Tech-Japan/Sekiban
Sekiban - an Opinionated Event Sourcing and CQRS Framework using C#. It can store data into Azure Cosmos DB, AWS Dynamo DB or Postgres
|
|
|
imazen/imageflow-server
A super-fast image server to speed up your site - deploy as a microservice, serverless, or embeddable.
|
|
|
Kralizek/AWSSecretsManagerConfigurationExtensions
This repository contains a provider for Microsoft.Extensions.Configuration that retrieves secrets stored in AWS Secrets Manager.
|
|
|
aws/aws-aspnet-cognito-identity-provider
ASP.NET Core Identity Provider for Amazon Cognito
|
|
|
aws/aws-dotnet-extensions-configuration
This repository hosts various libraries that help developers configure .NET applications using AWS services.
|
|
|
jacqueskang/EventSourcing
.NET Core event sourcing framework
|
|
|
aws-powertools/powertools-lambda-dotnet
Powertools is a developer toolkit to implement Serverless best practices and increase developer velocity.
|
|
|
PowerShellOrg/tug
Open-source, cross-platform Pull/Reporting Server for DSC
|
|
|
aws/integrations-on-dotnet-aspire-for-aws
This repository contains integrations with Aspire for AWS.
|
|
|
cmendible/dotnetcore.samples
.NET Core Samples - Code it Yourself...
|
|
|
aws/aws-dotnet-deploy
Opinionated tooling that simplifies deployment of .NET applications to AWS.
|
|
|
localstack-dotnet/localstack-dotnet-client
A lightweight .NET client for LocalStack
|
| Version | Downloads | Last Updated |
|---|---|---|
| 4.1.0.3 | 0 | 11/19/2026 |
| 4.1.0.2 | 14,903 | 11/17/2026 |
| 4.1.0.1 | 15,904 | 11/16/2026 |
| 4.1.0 | 72,141 | 11/12/2026 |
| 4.0.102.11 | 52,985 | 11/10/2026 |
| 4.0.102.10 | 105,330 | 11/6/2026 |
| 4.0.102.9 | 28,515 | 11/5/2026 |
| 4.0.102.8 | 30,541 | 11/4/2026 |
| 4.0.102.7 | 343,442 | 10/26/2026 |
| 4.0.102.6 | 230,576 | 10/21/2026 |
| 4.0.102.5 | 94,337 | 10/19/2026 |
| 4.0.102.4 | 284,243 | 10/14/2026 |
| 4.0.102.3 | 104,678 | 10/12/2026 |
| 4.0.102.2 | 102,820 | 10/8/2026 |
| 4.0.102.1 | 326,602 | 9/30/2026 |
| 4.0.102 | 63,159 | 9/29/2026 |
| 4.0.101.4 | 759,572 | 9/14/2026 |
| 4.0.101.3 | 329,391 | 9/9/2026 |
| 4.0.101.2 | 213,690 | 9/4/2026 |
| 4.0.101.1 | 622,939 | 8/24/2026 |