Problem
Hey folks π
I'm Harsh from the LocalStack team. Wanted to flag an upcoming change that will directly affect users of the LocalStack module in this library.
What's changing: Starting March 23, 2026, localstack/localstack:latest on Docker Hub will consolidate into a single unified image that requires authentication via a LOCALSTACK_AUTH_TOKEN. The free Community image, as it exists today, will no longer be available under that tag without an auth token set.
What this means for this repo:
The LocalStackContainer in src/Testcontainers.LocalStack pulls localstack/localstack by default to spin up the container during tests. Any user who instantiates LocalStackContainer after March 23 without a LOCALSTACK_AUTH_TOKEN set will hit an authentication error and their tests will fail immediately.
The places most likely to need updating:
- The LocalStack module docs (
docs/api/localstack.md) and any related examples, which don't currently mention auth token setup as a prerequisite
- The
LocalStackBuilder in src/Testcontainers.LocalStack, where passing LOCALSTACK_AUTH_TOKEN as an environment variable should be documented or facilitated
- The CI/CD pipeline (
.github/workflows/cicd.yml) if it runs LocalStack-based tests without an auth token
Solution
What users will need to do:
- Sign up for a free LocalStack account at [localstack.cloud](https://localstack.cloud/)
- Generate an auth token from the LocalStack Web App
- Set
LOCALSTACK_AUTH_TOKEN as an environment variable when starting the container
With testcontainers-dotnet, this would look like:
var localstack = new LocalStackBuilder()
.WithEnvironment("LOCALSTACK_AUTH_TOKEN", Environment.GetEnvironmentVariable("LOCALSTACK_AUTH_TOKEN") ?? string.Empty)
.Build();
await localstack.StartAsync();
Benefit
The good news: A free tier is staying β no one has to pay. CI credits are now unlimited on all plans, including free, and open-source projects like this one can apply for free access to paid plans.
Full details in our announcements:
Happy to help with any doc updates, review PRs, or answer questions. Let us know if there's anything we can do to make this easier β and thanks for maintaining the LocalStack module for the .NET community! π
Alternatives
Permanently pin the LocalStack version so that no Auth Token is required.
Would you like to help contributing this enhancement?
No
Problem
Hey folks π
I'm Harsh from the LocalStack team. Wanted to flag an upcoming change that will directly affect users of the LocalStack module in this library.
What's changing: Starting March 23, 2026,
localstack/localstack:lateston Docker Hub will consolidate into a single unified image that requires authentication via aLOCALSTACK_AUTH_TOKEN. The free Community image, as it exists today, will no longer be available under that tag without an auth token set.What this means for this repo:
The
LocalStackContainerinsrc/Testcontainers.LocalStackpullslocalstack/localstackby default to spin up the container during tests. Any user who instantiatesLocalStackContainerafter March 23 without aLOCALSTACK_AUTH_TOKENset will hit an authentication error and their tests will fail immediately.The places most likely to need updating:
docs/api/localstack.md) and any related examples, which don't currently mention auth token setup as a prerequisiteLocalStackBuilderinsrc/Testcontainers.LocalStack, where passingLOCALSTACK_AUTH_TOKENas an environment variable should be documented or facilitated.github/workflows/cicd.yml) if it runs LocalStack-based tests without an auth tokenSolution
What users will need to do:
LOCALSTACK_AUTH_TOKENas an environment variable when starting the containerWith
testcontainers-dotnet, this would look like:Benefit
The good news: A free tier is staying β no one has to pay. CI credits are now unlimited on all plans, including free, and open-source projects like this one can apply for free access to paid plans.
Full details in our announcements:
Happy to help with any doc updates, review PRs, or answer questions. Let us know if there's anything we can do to make this easier β and thanks for maintaining the LocalStack module for the .NET community! π
Alternatives
Permanently pin the LocalStack version so that no Auth Token is required.
Would you like to help contributing this enhancement?
No