AWSSecretsManager.Provider 1.3.7-preview.18

This is a prerelease version of AWSSecretsManager.Provider.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package AWSSecretsManager.Provider --version 1.3.7-preview.18
                    
NuGet\Install-Package AWSSecretsManager.Provider -Version 1.3.7-preview.18
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="AWSSecretsManager.Provider" Version="1.3.7-preview.18" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AWSSecretsManager.Provider" Version="1.3.7-preview.18" />
                    
Directory.Packages.props
<PackageReference Include="AWSSecretsManager.Provider" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add AWSSecretsManager.Provider --version 1.3.7-preview.18
                    
#r "nuget: AWSSecretsManager.Provider, 1.3.7-preview.18"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package AWSSecretsManager.Provider@1.3.7-preview.18
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=AWSSecretsManager.Provider&version=1.3.7-preview.18&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=AWSSecretsManager.Provider&version=1.3.7-preview.18&prerelease
                    
Install as a Cake Tool

AWSSecretsManager.Provider

All Contributors

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.


🚀 What's New in This Fork

  • ✅ Targeted to .NET 8, 9, 10, and 11 (plus netstandard2.0)
  • ✅ Converted to use System.Text.Json only
  • ✅ Refactored structure for better modern SDK usage
  • ✅ Comprehensive logging, batch fetch, and polling/reload support
  • ✅ Published as a new NuGet package: AWSSecretsManager.Provider

🔧 Quick Start

dotnet add package AWSSecretsManager.Provider
using AWSSecretsManager.Provider;
using Microsoft.Extensions.Configuration;

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. See Authentication & Security for details.

📖 Documentation

The full documentation site covers installation, every configuration option, secret-to-key mapping rules, batch fetch and polling, authentication/IAM, LocalStack, troubleshooting, and the complete API reference:

👉 layeredcraft.github.io/aws-secrets-manager-provider

🤖 AI Coding Agent Skill

This repo ships a downloadable Agent Skill that teaches AI coding agents to use this package correctly:

npx skills add LayeredCraft/aws-secrets-manager-provider

See docs/agent-skill.md or the skill source at skills/aws-secrets-manager-provider/.

📚 Samples

The repository includes comprehensive samples demonstrating different usage patterns:

Sample Description Key Features
Sample1 Basic Usage Default credentials, default region, all secrets
Sample2 Region Configuration Custom AWS region specification
Sample3 Credential Profiles Using named AWS credential profiles
Sample4 Secret Filtering Loading specific secrets by ARN allowlist
Sample5 Custom Key Generation Transforming configuration key names (e.g., uppercase)
Sample6 Custom Client Factory Advanced AWS client configuration
Sample7 Advanced Logging Comprehensive logging, polling, and monitoring
SampleWeb ASP.NET Core Web application integration with endpoints

Each sample includes a detailed README with usage examples, prerequisites, and explanations. See the complete samples overview for setup instructions and learning progression.


📦 Installation

dotnet add package AWSSecretsManager.Provider

✅ Building Locally

This repo is built with the standard .NET SDK:

dotnet build
dotnet test

To preview the documentation site locally:

uv sync
uv run mkdocs serve

🙌 Acknowledgments

This project is based on the excellent work by Renato Golia and inspired by the broader .NET and AWS developer community.


📄 License

This project is licensed under the MIT License.

Contributors ✨

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 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 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.4.0-preview.22 41 9/10/2026
1.4.0-preview.21 34 9/10/2026
1.4.0-preview.20 37 9/9/2026
1.4.0-preview.19 46 9/8/2026
1.3.7-preview.18 54 9/6/2026
1.3.6 1,446 8/27/2026
1.3.6-preview.17 62 8/27/2026
1.3.6-preview.16 81 8/26/2026
1.3.6-preview.15 67 8/19/2026
1.3.5 3,231 8/17/2026
1.3.5-preview.14 74 8/12/2026
1.3.5-preview.13 74 8/5/2026
1.3.5-preview.12 65 8/4/2026
1.3.5-preview.11 67 7/29/2026
1.3.4 3,450 7/24/2026
1.3.4-preview.10 76 7/24/2026
1.3.4-preview.9 66 7/24/2026
1.3.4-preview.8 84 7/22/2026
1.3.4-preview.7 69 7/22/2026
1.3.4-preview.6 79 7/22/2026
Loading failed