testcontainers / testcontainers/testcontainers-python
`localstack/localstack:latest` will require auth token from March 23 — LocalStack module docs & examples need updating
还没有人认领这个 Issue。
- 主要语言
- Python
- 星标
- 2.3k
- 派生
- 386
- 平均合并
- 4 小时 40 分钟
- 30 天内合并 PR
- 1
描述
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! 🙏
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
先查看 modules/localstack 下的 LocalStack 模块文档和示例,然后阅读 LocalStackContainer 类,以了解其当前的镜像和环境配置。检查 .github/workflows/ci-community.yml 中基于 LocalStack 的测试。受影响的文档、容器设置指南和 CI 预期都涵盖 LOCALSTACK_AUTH_TOKEN 要求后,即视为完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- docker, python
- 领域
- devops, documentation
- Issue 类型
- 文档
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 52/100