Localstack SQS Terraform | AWS SQS | Localstack | Terraform

Onexlab
5 min readFeb 24, 2022

In this article, We will show you how you can use LocalStack to create and test SQS on your local system using Terraform

Localstack SQS Terraform | AWS SQS | Localstack | Terraform

Video

What is LocalStack?

LocalStack provides an easy-to-use test/mocking framework for developing Cloud applications. This means you can test AWS cloud resources locally on your machine.

Note: LocalStack supports only AWS cloud stack.

For more details, you can read our previous article about LocalStack SQS

Let’s Start

Project Structure

Project
├── docker-compose.yml
├── main.tf (File)

We hope you have installed Docker on your system else you can check the following article to install Docker.

Docker-Compose.YML

Note: Starting with version 0.11.0, all APIs are exposed via a single edge service, which is accessible on http://localhost:4566 by default. If you look into the following file we have used EDGE_PORT=4566

In the above file, We are creating 1 Service as below with default region us-east-1

--

--