Skip to content

Commit 561c483

Browse files
authored
Update LocalStack docs (#11581)
Fixes #11568
1 parent 575c86f commit 561c483

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

docs/modules/localstack.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,21 @@ You can start a LocalStack container instance from any Java application by using
1010
[Container creation](../../modules/localstack/src/test/java/org/testcontainers/localstack/LocalStackContainerTest.java) inside_block:container
1111
<!--/codeinclude-->
1212

13+
Environment variables listed in the [LocalStack configuration documentation](https://docs.localstack.cloud/references/configuration/) may be used to customize LocalStack's configuration.
14+
Use the `.withEnv(key, value)` method on `LocalStackContainer` to apply configuration settings.
15+
16+
!!! note
17+
Starting March 23, 2026, `localstack/localstack` requires authentication via a `LOCALSTACK_AUTH_TOKEN` environment variable. Without it, the container will fail to start.
18+
19+
Use `.withEnv("LOCALSTACK_AUTH_TOKEN", System.getenv("LOCALSTACK_AUTH_TOKEN"))` to pass the token.
20+
See the [LocalStack blog post](https://blog.localstack.cloud/localstack-single-image-next-steps/) for more details.
21+
1322
## Creating a client using AWS SDK
1423

1524
<!--codeinclude-->
1625
[AWS SDK V2](../../modules/localstack/src/test/java/org/testcontainers/localstack/LocalStackContainerTest.java) inside_block:with_aws_sdk_v2
1726
<!--/codeinclude-->
1827

19-
Environment variables listed in [Localstack's README](https://github.com/localstack/localstack#configurations) may be used to customize Localstack's configuration.
20-
Use the `.withEnv(key, value)` method on `LocalStackContainer` to apply configuration settings.
21-
2228
## Adding this module to your project dependencies
2329

2430
Add the following dependency to your `pom.xml`/`build.gradle` file:

0 commit comments

Comments
 (0)