Anarchy.Toolkit.Bootstrap.Aws 2.1.0

dotnet add package Anarchy.Toolkit.Bootstrap.Aws --version 2.1.0
                    
NuGet\Install-Package Anarchy.Toolkit.Bootstrap.Aws -Version 2.1.0
                    
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="Anarchy.Toolkit.Bootstrap.Aws" Version="2.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Anarchy.Toolkit.Bootstrap.Aws" Version="2.1.0" />
                    
Directory.Packages.props
<PackageReference Include="Anarchy.Toolkit.Bootstrap.Aws" />
                    
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 Anarchy.Toolkit.Bootstrap.Aws --version 2.1.0
                    
#r "nuget: Anarchy.Toolkit.Bootstrap.Aws, 2.1.0"
                    
#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 Anarchy.Toolkit.Bootstrap.Aws@2.1.0
                    
#: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=Anarchy.Toolkit.Bootstrap.Aws&version=2.1.0
                    
Install as a Cake Addin
#tool nuget:?package=Anarchy.Toolkit.Bootstrap.Aws&version=2.1.0
                    
Install as a Cake Tool

Anarchy.Toolkit.Bootstrap.Aws

Part of Anarchy I/O Toolkit, a .NET developer platform · Pillar: Infrastructure · Layer: Bootstrap · Package catalog

Opt-in AWS configuration for toolkit applications: AWS settings, KMS secret management, Secrets Manager values, the SSM Parameter Store and the X-Ray trace id context.

dotnet add package Anarchy.Toolkit.Bootstrap.Aws
  • IAwsAppSettings/AwsSettings bind the Aws settings section.
  • ModuleAwsSecretManagement decrypts secrets with AWS KMS in remote environments; pass it to ModuleLibConfiguration.WithSecretManagement.
  • IHostEnvironment.GetAwsSecretValue reads AWS Secrets Manager remotely; AddAwsSystemsManagerParameterStore adds the SSM Parameter Store as a configuration source.
  • AmazonRequestContext/IAmazonRequestContext (ModuleAwsRequestContext) expose the X-Ray trace id of the current request.

When to use it

Use this package only in applications that run on AWS. Anarchy.Toolkit.Bootstrap stays provider-neutral: without this package no AWS SDK is referenced and no remote secret service is registered.

How to use it

services.UseModule(
    new ModuleLibConfiguration<ModuleAppSettings, AppSettings>()
        .WithSecretManagement(new ModuleAwsSecretManagement()),
    configuration, environment);

ModuleAwsSecretsManager registers AWS Secrets Manager as the ISecretManagementService (SecretsManagerSecretService: the value passed to DecryptStringAsync is the secret name or ARN, cached per instance), next to the KMS-based ModuleAwsSecretManagement. Both add their services and AWS clients (IAmazonSecretsManager, IAmazonKeyManagementService, created from the default AWS credential and region chain) with TryAdd: register a client of your own (with a region or a service URL) or another ISecretManagementService before the module and it is kept. ModuleAwsSecretManagement uses the in-memory secret service in local environments.

Register explicit SSM paths in precedence order (later paths override earlier ones):

using Anarchy.Toolkit.Bootstrap.Aws.Extensions.Microsoft.Extensions.Configuration;

builder.Configuration.AddAwsSystemsManagerParameterStore(
    builder.Environment,
    new[] { "/application/shared", "/application/${env:DEPLOYMENT_STAGE}" },
    optional: true,
    reloadAfter: TimeSpan.FromMinutes(5));

The explicit-path overload does nothing locally. In remote environments it expands ${env:NAME} from environment variables; a missing, empty or whitespace value skips that entire path when optional is true, or throws MissingEnvironmentVariableException otherwise. optional and reloadAfter are passed to each SSM source. It neither derives a path nor implicitly reads or writes PARAMETER_STORE_CONFIGURATION_PATH. The existing single-prefix overload retains its original behavior, including that environment variable.

See the package catalog and toolkit overview.

Releases

See the release notes for the complete release history.

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

NuGet packages (3)

Showing the top 3 NuGet packages that depend on Anarchy.Toolkit.Bootstrap.Aws:

Package Downloads
Anarchy.Toolkit.Testing.Aws

AWS test helpers: SNS/SQS helpers (typically against Moto), SqsMessageFixture with gzip/zlib bodies, and LambdaContextFixture for Lambda handlers under test.

Anarchy.Toolkit.Runtime.Web.Aws

Opt-in AWS Lambda hosting for toolkit REST APIs: AwsWebAppEntryPointBase behind API Gateway, the X-Amzn-Trace-Id middleware (UseAmazonTraceId) and Lambda path helpers.

Anarchy.Toolkit.Runtime.Aws

Opt-in AWS Lambda hosting for Jobs and event handlers: LambdaJobEntryPointBase, which carries the X-Ray trace id of each invocation into the toolkit's request context.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.1.0 0 12/1/2026
2.0.0 0 12/1/2026
1.0.0 80 11/27/2026

## Releases

### 2.1.0

- Add an `AddAwsSystemsManagerParameterStore(environment, prefix, appNamePrefix, optional, reloadAfter)` overload, so the derived path can be optional and reload.

### 2.0.0

- Add explicit Systems Manager paths and an injectable Secrets Manager service; use registered AWS clients.
- feat(Core)!: Add health and telemetry extension points
- feat(Infrastructure): Add configurable provider and messaging seams
- feat(Bootstrap)!: Classify environments safely and configure AWS secrets

### 1.0.0

- Introduced the package with the AWS implementations extracted from its provider-neutral parent.