Skip to content
Fresh

AWS LocalStack

Back

Guides

Testing AWS service integrations using LocalStack

Learn how to create a Spring Boot application with Spring Cloud AWS, then test S3 and SQS integrations using Testcontainers and LocalStack.

Java Testing with Docker

25 minutes

1

Create the project

2

Write tests

3

Run tests

« Back to all guides

Testing AWS service integrations using LocalStack

Table of contents


Learn how to create a Spring Boot application with Spring Cloud AWS, then test S3 and SQS integrations using Testcontainers and LocalStack.

Time to complete25 minutes

In this guide, you will learn how to:

  • Create a Spring Boot application with Spring Cloud AWS integration
  • Use AWS S3 and SQS services
  • Test the application using Testcontainers and LocalStack

Prerequisites

  • Java 17+
  • Maven or Gradle
  • A Docker environment supported by Testcontainers

Note

If you're new to Testcontainers, visit the Testcontainers overview to learn more about Testcontainers and the benefits of using it.

Modules

  1. Create the project Set up a Spring Boot project with Spring Cloud AWS, S3, and SQS.

  2. Write tests Test Spring Cloud AWS S3 and SQS integration using Testcontainers and LocalStack.

  3. Run tests Run your Testcontainers-based Spring Cloud AWS integration tests and explore next steps.