🚨 AtomicJar is now part of Docker 🐋! Read the blog

Official Module

LocalStack
We partner with software vendors to maintain and certify official modules.

Description

LocalStack is a fully functional local AWS cloud stack. This module allows you to develop your cloud and serverless apps without actually using the cloud.

Examples

Dependency:
<dependency>
    <groupId>org.testcontainers</groupId>
    <artifactId>localstack</artifactId>
    <version>1.20.0</version>
    <scope>test</scope>
</dependency>
Usage:
var localstack = new LocalStackContainer(DockerImageName.parse("localstack/localstack:0.11.3"));
localstack.start();
Dependency:
go get github.com/testcontainers/testcontainers-go/modules/localstack
Usage:
localstackContainer, err := localstack.Run(ctx, "localstack/localstack:1.4.0")
Dependency:
dotnet add package Testcontainers.LocalStack --version 3.9.0
Usage:
var localStackContainer = new LocalStackBuilder()
  .WithImage("localstack/localstack:2.0")
  .Build();
await localStackContainer.StartAsync();
Dependency:
npm install @testcontainers/localstack --save-dev
Usage:
const container = await new LocalstackContainer().start();
Dependency:
pip install testcontainers[localstack]
Usage:
with LocalStackContainer(image="localstack/localstack:2.0.1") as localstack:
    dynamo_client = localstack.get_client("dynamodb")
    tables = dynamo_client.list_tables()