WTH Is LocalStack for AWS? A Practical Intro for Developers
New to LocalStack but familiar with AWS? Learn what LocalStack is, why it speeds up your development workflow, and how to get your first local AWS environment running in minutes.
You know AWS. You’ve spun up Lambda functions, wrestled with IAM policies, and maybe cried a little over unexpected billing alerts. You know the drill: write code, deploy to AWS, wait, check logs, realize something’s broken, fix it, deploy again. Repeat until it works or you run out of patience, whichever comes first.
What if you could skip all that? No deploys, no AWS bills, no waiting. Just you and your code, running locally.
That’s LocalStack for AWS.
So, What Exactly Is LocalStack for AWS?
LocalStack for AWS is a fully functional local AWS cloud stack. It runs on your machine inside a Docker container and emulates over 100 AWS services — Lambda, S3, DynamoDB, SQS, API Gateway, and so many more – without ever touching a real AWS account.
Think of it as AWS, but on your laptop. Same APIs. Same behavior. Zero cloud costs.
When you create resources with the AWS CLI or deploy with Terraform, LocalStack for AWS can intercept those requests and handle them locally. Your code doesn’t know the difference, which means your code works the same way locally as it will in production.
Why Should You Care?
If you’ve spent any time building on AWS, you’ve probably run into at least one of these:
- Slow feedback loops. Deploy to AWS, wait 2 minutes, check if it worked. Repeat. LocalStack for AWS cuts that down to seconds.
- Unexpected costs. Dev accounts accumulate charges faster than you’d think. You can deploy and test on LocalStack as many times as you like and it won’t incur any additional cloud costs.
- Shared dev environments gone wrong. Someone on your team resets a DynamoDB table and everyone’s environment breaks. With LocalStack for AWS, everyone has their own isolated sandbox.
- CI that takes forever. Integration tests that hit real AWS can be slow, flaky, and expensive. LocalStack for AWS makes them fast and deterministic.
LocalStack solves all of these issues. It’s a full AWS emulation layer designed for serious development and testing workflows. Plus it’s:
- Free for individuals to use for non-commercial use.
- Available to use in CI with no limits.
- Validated by a comprehensive test suite that ensures AWS API accuracy.
How Does It Work?
LocalStack for AWS runs as a Docker container and, by default, starts a local server on port 4566. That server acts as a drop-in replacement for AWS endpoints.
Instead of pointing your AWS SDK or CLI at https://s3.amazonaws.com, you point it at http://localhost:4566. That’s basically it.
All you need to do is configure your AWS tooling to the custom endpoint or, even easier, use LocalStack’s lightweight wrappers like awslocal, cdklocal, tflocal and others to do that for you. LocalStack for AWS handles the rest.
What Services Are Supported?
Short answer: a lot. Here’s a quick sample of what you can use with LocalStack for AWS:
- Compute: Lambda, ECS, EKS, Batch
- Storage: S3, EFS, EBS
- Databases: DynamoDB, RDS, ElastiCache, Redshift
- Messaging: SQS, SNS, EventBridge, Kinesis
- Networking & API: API Gateway, VPC, Route53, CloudFront
- Security: IAM, Secrets Manager, KMS, ACM
- DevOps: CloudFormation, CDK, Terraform (via
tflocal)
You can see the full list of supported services in our documentation, including details for every API covered by each service. The Hobby tier (free) covers many of the most commonly used services. Paid tiers unlock the full list of services as well as features including:
- Cloud Pods for persistence and team collaboration.
- IAM policy stream for help identifying the correct permissions
- Chaos Engineering for simulating faults to build more resilient systems.
Plus LocalStack for AWS’s broad range of supported integrations.
A Quick Note on Auth Tokens
Starting March 23, 2026, accessing the latest LocalStack releases requires a LocalStack account and an auth token — even on the free Hobby tier. This applies to local development and CI.
The good news: signing up is free. Once you have an account, generate a token from your account settings and set it like this:
localstack auth set-token YOUR_AUTH_TOKENOr via environment variable:
export LOCALSTACK_AUTH_TOKEN="your-auth-token"Treat your token like a password. Don’t commit it to GitHub and don’t print it to logs.
For the full details on what’s changing and how to migrate, check out this post.
Getting Started
Ready to run your first local AWS app? I’ve got a step-by-step tutorial that walks you through installing LocalStack, setting up your auth token, and deploying a real serverless app — all without touching AWS.
A Few Tips If You’re Coming from AWS
Since you already know AWS, here are a few things that’ll make the transition to LocalStack for AWS feel smooth:
- Your AWS credentials don’t need to be real. LocalStack doesn’t validate them. Set
AWS_ACCESS_KEY_ID=testandAWS_SECRET_ACCESS_KEY=testand you’re good. - Use
tflocalfor Terraform. It’s a thin wrapper around the Terraform CLI that automatically redirects endpoints to LocalStack. No changes to your.tffiles needed. - Use
cdklocalfor CDK. Same idea — a drop-in replacement for the CDK CLI that points at LocalStack instead of AWS. - LocalStack resets on restart. By default, your local state doesn’t persist when you stop the container. Use LocalStack for AWS’s [persistence capabilities](https://docs.localstack.cloud/aws/capabilities/state-management/ to save, restore and even share state.
- IAM is permissive by default. LocalStack doesn’t enforce IAM policies by default to accelerate your development without pesky IAM errors. You can utilize IAM policy enforcement and IAM policy stream to debug IAM issues before they hit the real cloud.
What’s Next?
Once LocalStack for AWS is running, the real fun starts. Here are a few things to try:
- Deploy a real serverless app with Terraform or CDK
- Run your existing integration tests against LocalStack for AWS instead of AWS
- Simulate AWS outages and failures with Chaos Engineering tools
- Use Cloud Pods to save a snapshot your environment and share it with your team.
Check out our extensive list of tutorials and sample apps when you’re ready to go deeper.
Wrapping Up
LocalStack for AWS gives AWS developers a superpower: a full cloud environment running on your laptop. Faster feedback, no surprise bills, isolated local stacks, and integration tests that actually run fast.
If you’ve been frustrated with the AWS development loop – and honestly, who hasn’t – LocalStack for AWS is definitely worth a try. Install it, run a couple of commands, and see for yourself how different local cloud development can feel.