Member-only story
How to Use Localstack for Running AWS Services Locally: A Step-by-Step Guide
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.
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.