Mocks as code: Modeling AWS service providers with Testcontainers, WireMock and Localstack

Combining LocalStack, WireMock and Testcontainers in a Dev Container to test cloud-based services and deployments.

Tags: testing mocking testcontainers wiremock configuration-management

Slides

Abstract

When managing services at scale, you need automated testing while mocking (or modeling) the parts provided by public clouds, as well as testing entire deployment processes. This session demonstrates how to combine Localstack (for AWS integration testing), WireMock (for service mocking), and Testcontainers, a popular framework for Docker and other container engines, for comprehensive integration testing - all running in a Dev Container on your local machine.

Using Pulumi and Java as examples, you'll see live coding that demonstrates how these tools work together, with the approach applicable to any tech stack. Expect a hands-on workshop format with minimal tool requirements, showcasing developer experience for modern, containerized developer environments and practical techniques you can apply immediately to your own services.

References

Presented at

  • PlatformCon, June 2025