[Feature]: Add support for AWS Emulator

未关闭
#12,159 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
22/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
aws, docker, java
领域
testing

调研方向

Start with the existing LocalStack module, which the issue names as the model for a new AwsEmulatorContainer module, and with the GenericContainer usage it replaces. Decide how the official AWS Emulator Dockerfile and image are consumed, and how the /__admin/health check, endpoint URL, credentials, truststore helper and default 2 GiB memory limit are exposed. Done means a module with tests that start the container, pass the health check and point an AWS SDK client at it. The issue has no assignee and needs maintainer design input first.

由索引模型根据 Issue 内容生成。

描述

type/feature
Module

None

Problem

AWS Emulator (released 11 Nov 2026) is an official, free local emulator of AWS APIs. There is currently no Testcontainers module for it. Users must manually build a Docker image from AWS’s Dockerfile, write a custom GenericContainer, and handle the self-signed certificate/truststore required by the AWS SDK for Java. This creates friction for Java teams that already use Testcontainers for integration tests.

Solution

Add a first-class AwsEmulatorContainer module (similar to the existing LocalStack module) that:

  • Provides a ready-to-use container (or easy image builder based on the official Dockerfile)
  • Includes a health check on /__admin/health
  • Exposes helpers for the endpoint URL, credentials, and Java truststore configuration
  • Defaults to telemetry off and the recommended 2 GiB memory limit

Links::
GitHub: [github.com/aws/aws-emulator](https://github.com/aws/aws-emulator)
Docs: [docs.aws.amazon.com/emulator](https://docs.aws.amazon.com/emulator/)
Docker getting started: [docs.aws.amazon.com/emulator/latest/userguide/getting-started-docker.html](https://docs.aws.amazon.com/emulator/latest/userguide/getting-started-docker.html)
Announcement: [aws.amazon.com/blogs/aws/test-your-applications-against-aws-locally-with-aws-emulator](https://aws.amazon.com/blogs/aws/test-your-applications-against-aws-locally-with-aws-emulator/)

Benefit

Java teams can start an isolated AWS Emulator instance with a few lines of code, point the AWS SDK at it, and get clean per-test or per-class lifecycle management. This lowers the barrier to adopting the official emulator for local and CI testing, especially as an alternative to LocalStack.

Alternatives
  • Continue writing custom GenericContainer subclasses (current state).
  • Use the native Linux package + process management outside Testcontainers.
  • Use LocalStack (requires a token for many services and is not the official AWS emulator).
  • Wait for an embedded mode for Java (currently only available for Rust).
Would you like to help contributing this feature?

No

主要语言
Java
星标
8.8k
派生
2k
平均合并
5 天 21 小时
30 天内合并 PR
15

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

testcontainers/testcontainers-java 的其他 Issue

查看 testcontainers/testcontainers-java 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。