testcontainers / testcontainers/testcontainers-python
`localstack/localstack:latest` will require auth token from March 23 — LocalStack module docs & examples need updating
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- Python
- Estrellas
- 2.3k
- Forks
- 386
- Merge medio
- 4 h 40 min
- PR fusionados (30 d)
- 1
Descripción
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 modules/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 and any related examples in
modules/localstack, which don't currently mention auth token setup as a prerequisite - The
LocalStackContainerclass itself, where passingLOCALSTACK_AUTH_TOKENas an environment variable should be documented or facilitated - The CI/CD pipeline (
.github/workflows/ci-community.yml) if it runs LocalStack-based tests without an auth token
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_TOKENas an environment variable when starting the container
With testcontainers-python, this would look like:
import os
from testcontainers.localstack import LocalStackContainer
with LocalStackContainer() \
.with_env("LOCALSTACK_AUTH_TOKEN", os.environ.get("LOCALSTACK_AUTH_TOKEN", "")) as localstack:
# your test code here
pass
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:
- https://blog.localstack.cloud/the-road-ahead-for-localstack/
- https://blog.localstack.cloud/localstack-single-image-next-steps/
- https://blog.localstack.cloud/2026-upcoming-pricing-changes/
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 Python community! 🙏
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Comienza con la documentación y los ejemplos del módulo LocalStack en modules/localstack; después, lee la clase LocalStackContainer para entender su configuración actual de imagen y entorno. Revisa .github/workflows/ci-community.yml en busca de pruebas basadas en LocalStack. Se considera terminado cuando la documentación afectada, las instrucciones de configuración del contenedor y las expectativas de CI contemplen los requisitos de LOCALSTACK_AUTH_TOKEN.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- docker, python
- Área
- devops, documentation
- Tipo de issue
- Documentación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 52/100