Hey folks π
I'm Harsh from the LocalStack team. Wanted to flag an upcoming change that will directly affect users of 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:
go-localstack spins up the LocalStack Docker container directly via localstack.NewInstance() and l.Start(). After March 23, any user calling l.Start() without a LOCALSTACK_AUTH_TOKEN configured in the container environment will get an authentication error, causing their tests to fail immediately.
The places most likely to need updating:
- The README examples (
ExampleLocalstackSdkV2EndpointResolverV2, ExampleLocalstackSdkV2, TestWithLocalStack), which don't currently mention auth token setup
- The
localstack.go implementation, where support for passing LOCALSTACK_AUTH_TOKEN as an environment variable to the container may need to be added or documented
- The CI/CD pipeline (
.github/workflows/test.yml) if it pulls the community image without an auth token
What users will need to do:
- Sign up for a free LocalStack account at localstack.cloud
- Generate an auth token from the LocalStack Web App
- Pass
LOCALSTACK_AUTH_TOKEN as an environment variable when starting the LocalStack container
If the library supports passing custom environment variables to the container, the usage would look something like:
l, err := localstack.NewInstance(localstack.WithEnvironment(map[string]string{
"LOCALSTACK_AUTH_TOKEN": os.Getenv("LOCALSTACK_AUTH_TOKEN"),
}))
If this option doesn't exist yet, it would be a valuable addition for users to make this transition smoothly.
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 this library for the Go community! π
Hey folks π
I'm Harsh from the LocalStack team. Wanted to flag an upcoming change that will directly affect users of 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:
go-localstackspins up the LocalStack Docker container directly vialocalstack.NewInstance()andl.Start(). After March 23, any user callingl.Start()without aLOCALSTACK_AUTH_TOKENconfigured in the container environment will get an authentication error, causing their tests to fail immediately.The places most likely to need updating:
ExampleLocalstackSdkV2EndpointResolverV2,ExampleLocalstackSdkV2,TestWithLocalStack), which don't currently mention auth token setuplocalstack.goimplementation, where support for passingLOCALSTACK_AUTH_TOKENas an environment variable to the container may need to be added or documented.github/workflows/test.yml) if it pulls the community image without an auth tokenWhat users will need to do:
LOCALSTACK_AUTH_TOKENas an environment variable when starting the LocalStack containerIf the library supports passing custom environment variables to the container, the usage would look something like:
If this option doesn't exist yet, it would be a valuable addition for users to make this transition smoothly.
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 this library for the Go community! π