![]() |
VOOZH | about |
dotnet add package AWSSecretsManager.Provider --version 1.3.2
NuGet\Install-Package AWSSecretsManager.Provider -Version 1.3.2
<PackageReference Include="AWSSecretsManager.Provider" Version="1.3.2" />
<PackageVersion Include="AWSSecretsManager.Provider" Version="1.3.2" />Directory.Packages.props
<PackageReference Include="AWSSecretsManager.Provider" />Project file
paket add AWSSecretsManager.Provider --version 1.3.2
#r "nuget: AWSSecretsManager.Provider, 1.3.2"
#:package AWSSecretsManager.Provider@1.3.2
#addin nuget:?package=AWSSecretsManager.Provider&version=1.3.2Install as a Cake Addin
#tool nuget:?package=AWSSecretsManager.Provider&version=1.3.2Install as a Cake Tool
👁 NuGet version
👁 NuGet Downloads
👁 Build Status
This is a modern, community-maintained fork of Kralizek/AWSSecretsManagerConfigurationExtensions, originally developed by Renato Golia.
It provides a configuration provider for Microsoft.Extensions.Configuration that loads secrets from AWS Secrets Manager.
System.Text.Json onlyILogger integrationAWSSecretsManager.Providerpublic class Program
{
public static void Main(string[] args)
{
CreateHostBuilder(args).Build().Run();
}
public static IHostBuilder CreateHostBuilder(string[] args) =>
Host.CreateDefaultBuilder(args)
.ConfigureAppConfiguration((context, config) =>
{
config.AddSecretsManager(); // 👈 AWS Secrets Manager integration
})
.ConfigureWebHostDefaults(webBuilder =>
{
webBuilder.UseStartup<Startup>();
});
}
static void Main(string[] args)
{
var builder = new ConfigurationBuilder();
builder.AddSecretsManager();
var config = builder.Build();
Console.WriteLine("Secret: " + config["MySecret"]);
}
Your application must have AWS credentials available through the default AWS SDK mechanisms. Learn more here:
👉 AWS SDK Credential Config
The provider includes comprehensive logging support for better observability:
// Using ILoggerFactory (recommended)
using var loggerFactory = LoggerFactory.Create(builder => builder.AddConsole());
builder.Configuration.AddSecretsManager(
loggerFactory,
configurator: options => options.PollingInterval = TimeSpan.FromMinutes(5));
// Using explicit ILogger
var logger = loggerFactory.CreateLogger<SecretsManagerConfigurationProvider>();
builder.Configuration.AddSecretsManager(
logger,
configurator: options => options.PollingInterval = TimeSpan.FromMinutes(5));
Log Levels:
Example Log Output:
[Information] Loading secrets from AWS Secrets Manager
[Debug] Fetching 15 secrets in 1 batches
[Information] Successfully loaded 47 configuration keys in 1,234ms
[Information] Starting secret polling with interval 00:05:00
This provider supports several customization options, including:
ILogger integration for observability.ServiceUrl for local testing.The repository includes comprehensive samples demonstrating different usage patterns:
| Sample | Description | Key Features |
|---|---|---|
| Basic Usage | Default credentials, default region, all secrets | |
| Region Configuration | Custom AWS region specification | |
| Credential Profiles | Using named AWS credential profiles | |
| Secret Filtering | Loading specific secrets by ARN allowlist | |
| Custom Key Generation | Transforming configuration key names (e.g., uppercase) | |
| Custom Client Factory | Advanced AWS client configuration | |
| Advanced Logging | Comprehensive logging, polling, and monitoring | |
| ASP.NET Core | Web application integration with endpoints |
Each sample includes a detailed README with usage examples, prerequisites, and explanations. See the complete for setup instructions and learning progression.
dotnet add package AWSSecretsManager.Provider
This repo is built with the standard .NET SDK:
dotnet build
dotnet test
This project is based on the excellent work by Renato Golia and inspired by the broader .NET and AWS developer community.
This project is licensed under the .
Thanks goes to these wonderful people (emoji key):
<table> <tbody> <tr> <td align="center" valign="top" width="14.28%"><a href="https://github.com/ncipollina"><img src="https://avatars.githubusercontent.com/u/1405469?v=4?s=100" width="100px;" alt="Nick Cipollina"/><br /><sub><b>Nick Cipollina</b></sub></a><br /><a href="https://github.com/LayeredCraft/aws-secrets-manager-provider/commits?author=ncipollina" title="Code">💻</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/ransagy"><img src="https://avatars.githubusercontent.com/u/6785058?v=4?s=100" width="100px;" alt="Ran Sagy"/><br /><sub><b>Ran Sagy</b></sub></a><br /><a href="https://github.com/LayeredCraft/aws-secrets-manager-provider/commits?author=ransagy" title="Code">💻</a></td> </tr> </tbody> </table>
This project follows the all-contributors specification. Contributions of any kind welcome!
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 was computed. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 is compatible. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. net11.0 net11.0 is compatible. |
| .NET Core | netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 netstandard2.0 is compatible. netstandard2.1 netstandard2.1 was computed. |
| .NET Framework | net461 net461 was computed. net462 net462 was computed. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 was computed. net48 net48 was computed. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen40 tizen40 was computed. tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.3.2 | 7,543 | 5/14/2026 |
| 1.3.2-preview.3 | 50 | 5/14/2026 |
| 1.3.1 | 6,168 | 4/18/2026 |
| 1.3.1-preview.2 | 65 | 4/18/2026 |
| 1.3.1-preview.1 | 52 | 4/18/2026 |
| 1.3.0.29 | 110 | 4/18/2026 |
| 1.3.0.28 | 381 | 4/16/2026 |
| 1.2.1.27 | 19,151 | 4/4/2026 |
| 1.2.0.26 | 6,450 | 3/19/2026 |
| 1.1.9.25 | 23,732 | 2/11/2026 |
| 1.1.8.24 | 1,712 | 2/9/2026 |
| 1.1.7.23 | 45,011 | 1/9/2026 |
| 1.1.6.22 | 46,399 | 11/11/2025 |
| 1.1.5.21 | 33,503 | 10/19/2025 |
| 1.1.4.20 | 3,678 | 10/14/2025 |
| 1.1.3.19 | 74,037 | 9/8/2025 |
| 1.1.2.18 | 344 | 9/8/2025 |
| 1.1.2.16 | 8,524 | 8/22/2025 |
| 1.1.1.15 | 29,832 | 7/25/2025 |