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 complete
25 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
NoteIf you're new to Testcontainers, visit the Testcontainers overview to learn more about Testcontainers and the benefits of using it.
Modules
- Create the project
Set up a Spring Boot project with Spring Cloud AWS, S3, and SQS.
- Write tests
Test Spring Cloud AWS S3 and SQS integration using Testcontainers and LocalStack.
- Run tests
Run your Testcontainers-based Spring Cloud AWS integration tests and explore next steps.