Repository navigation
✨ What's New in 13.6.0
This release aligns the package with Aspire 13.6.5, gives AppHosts a package-owned configuration surface that no longer needs LocalStack.Client types, adds explicit runtime selection between the current LocalStack image and a token-free legacy preset, and backs every publication with a current + legacy runtime pair that runs on Linux, Windows and macOS.
🎛️ Explicit Runtime and Activation Options
- The default image moves from
4.12.0to the current LocalStack release2026.10.6, which requires a LocalStack activation token and a suitable entitlement. WithLegacy()selects the tested token-free4.14.0preset.WithAuthToken(...)accepts an explicit value or a caller-owned secret parameter.- Input precedence is fluent → exact extra-env key → host configuration. Explicit blanks suppress fallback, and missing activation never causes a downgrade or a real-AWS fallback.
⚙️ Package-Owned AppHost Configuration
LocalStackHostingOptions(Enabled,Region,AccessKeyId,SecretAccessKey,SessionToken) withWithEnabled(...),WithRegion(...)andWithCredentials(...)fluent extensions.- Canonical
Aspire:Hosting:LocalStackconfiguration section (Aspire__Hosting__LocalStack__*). The legacyLocalStack:*section is still honored at lower precedence. - New
AddLocalStack(),AddLocalStack(name),AddLocalStack(name, awsConfig, configureContainer)andAddLocalStack(name, awsConfig, configureOptions, configureContainer)overloads. - Enabled options are validated up front: missing values fail with one
DistributedApplicationExceptionthat names every invalid property without echoing credentials. - A read-only endpoint-conflict warning when LocalStack.Client proxy settings and native
AWS_ENDPOINT_URL*settings meet on the same workload.
🔒 Security Fixes
Aspire.Hosting13.6.5 fixes GHSA-f7vh-h5g3-7jrh and GHSA-4g86-54fm-h9h8. Move your AppHost's ownAspire.AppHost.SdkandAspire.Hosting.AppHostreferences to 13.6.5 too.- MessagePack
2.5.307(via Aspire) fixes GHSA-qhrr-8q5h-9q3h, GHSA-fx6j-x9m5-vmrf and GHSA-7rj2-5w9w-r9jx.
🐛 Fixes
- Bare explicit workload references receive all nine Client settings without an unrelated CloudFormation relationship; imported stacks keep read-only semantics.
- Workload Host/Port values keep the consumer-network context; health check names are qualified per resource.
- Resource names longer than 40 characters no longer produce an invalid activation-parameter name.
⚠️ Breaking Changes and Deprecations
- Activation token by default. AppHosts that relied on the old
4.12.0default now need a LocalStack activation token, orWithLegacy()for the token-free4.14.0preset. - NU1605 for low pins. Consumers that pin
LocalStack.Client(.Extensions)below 3.0.0, orAWSSDK.Corebelow 4.0.102.6, must raise those pins. - Positional
nullcalls.AddLocalStack("localstack", null, null, ...)now reports CS0121. Name the arguments (awsConfig: null, configureContainer: ...) or useAddLocalStack("localstack"). Compiled AppHosts are not affected. - Deprecated (warning, removed in the next major): the LocalStack.Client-shaped
AddLocalStack(name, localStackOptions, awsConfig, configureContainer)overload,AddLocalStackOptions(),ILocalStackResource.Optionsand the relatedILocalStackOptionshelpers. Migrate to the package-owned overloads andAspire:Hosting:LocalStackconfiguration.
🐛 Known Issues
- Avoid combining Client proxy mode and native
AWS_ENDPOINT_URL*settings on one workload; the Lambda Test Tool's stream poller still requiresus-east-1. See Upstream Watch. - One intermittent current-runtime Lambda redirect timeout from October has not recurred and has no known cause.
🧪 Testing & Quality
- The same declared scenarios run against the current and the legacy image. Each run's evidence is bound to its execution by SHA-256, masked, and rejected by
validate-runtimewhen stale, dirty or incomplete. - Every publication requires the passing trusted pair and a packed-consumer
verify-consumerpass for the same commit. The pair passed 32/32 per runtime on Linux, Windows and macOS for this release line. - Packages are published to NuGet.org with Trusted Publishing (GitHub OIDC); no long-lived API key is stored.
📦 Version Updates
- Aspire.Hosting:
13.4.6→13.6.5 - Aspire.Hosting.AWS:
13.3.1→13.7.3 - LocalStack.Client / LocalStack.Client.Extensions:
2.0.0→3.0.0(public surface unchanged) - CDK bootstrap template:
BootstrapVersion33(aws-cdk 2.1148.0) - AWSSDK, Amazon.Lambda, OpenTelemetry, SkiaSharp, TUnit and analyzers aligned to latest stable
The full list is in the CHANGELOG.
🛠️ Installation
dotnet add package LocalStack.Aspire.HostingNote: Package uses namespace
Aspire.Hosting.LocalStackfor .NET Aspire convention alignment.
- ✅ .NET 8, .NET 9 and .NET 10
- ✅ Cross-platform (Windows, Linux, macOS)
- ✅ Compatible with the official AWS integrations for .NET Aspire
🔧 Dependencies
- Aspire.Hosting: 13.6.5
- Aspire.Hosting.AWS: 13.7.3
- LocalStack.Client: 3.0.0
- LocalStack Container: 2026.10.6 (current, activation token) or 4.14.0 (legacy preset)
- .NET 8.0+ required
What's Changed
- feat: package-owned AppHost configuration, current dependencies, and a rebuilt documentation surface by @Blind-Striker in #36
- docs: move dated evidence to the private archive and the roadmap to .github by @Blind-Striker in #37
- test: prove the endpoint contract without a separate probe project by @Blind-Striker in #39
- ci: add the GitHub Packages source only after the packed consumer check by @Blind-Striker in #40
- docs: record the hosted trusted pair and the verified Linux Ctrl+C behaviour by @Blind-Striker in #41
- fix: restore 13.4.0 resource adapters and let the conflict warning see the package's Client settings by @Blind-Striker in #42
- fix(tools): keep test platform pipes short enough for macOS by @Blind-Striker in #43
- test: keep integration AppHosts off the developer certificate by @Blind-Striker in #44
- chore: prepare the 13.6.0 release by @Blind-Striker in #45
- ci: publish to NuGet.org with trusted publishing by @Blind-Striker in #46
Full Changelog: 13.4.0...13.6.0