Member-only story

How to Use Localstack for Running AWS Services Locally: A Step-by-Step Guide

Emad Dehnavi
4 min readNov 13, 2024

A while ago, I had to make a feature to upload/read some files from a S3 bucket, and usually is not a good practice to connect directly from your local to your AWS infrastructure, which usually is belongs to other environments ( Ex. Staging/Sandbox ) because you will ended up with some data which is not for the right environment, not to mention it’s usually against company policies to give the AWS credentials to be used in local machines.

How to Use Localstack for Running AWS Services Locally: A Step-by-Step Guide

Here is where you can use Localstack. if you’re developing applications that depend on AWS services, running these services locally with Localstack can speed up development, reduce costs, and allow testing without relying on cloud resources. In this post we going to explain how to use Localstack locally, specially if you are using the latest Modularized AWS SDK v3 in Javascript/Typescript.

1. Create a Localstack account

You going to need an account in order to use Localstack. While they offer a Trial for their pro version, for the most common services ( ex. S3, DynamoDB, ect ) you can use their free version without a limit, but if you like to try their Pro version feel free to register for the trial as well.

--

--

Emad Dehnavi
Emad Dehnavi

Written by Emad Dehnavi

With 8 years as a software engineer, I write about AI and technology in a simple way. My goal is to make these topics easy and interesting for everyone.

No responses yet