Skip to content

Localstack Module

Testcontainers module for the Atlassian's LocalStack, 'a fully functional local AWS cloud stack'.

Usage example

Running LocalStack as a stand-in for AWS S3 during a test:

public class SomeTest {

    public LocalStackContainer localstack = new LocalStackContainer()

    public void someTestMethod() {
        AmazonS3 s3 = AmazonS3ClientBuilder

                s3.putObject("foo", "bar", "baz");

Adding this module to your project dependencies

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

testCompile "org.testcontainers:localstack:1.11.3"