Build: Installing LocalStack on Debian Linux
Introduction: AWS Without the Cloud
Imagine spinning up S3, Lambda, and DynamoDB on your laptop without touching AWS or paying a dime. That's the promise of LocalStack—a self-contained emulator for AWS services that runs inside Docker. In this guide, we'll walk through installing LocalStack on a Debian-based system (like Ubuntu or Chromebook Linux) and successfully creating your first S3 bucket, all from the command line.
Step 1: Install Docker (System-Wide)
LocalStack runs inside Docker, so your first move is to install Docker outside any Python environment.
Update and upgrade your system packages:
LocalStack runs inside Docker, so your first move is to install Docker outside any Python environment.
Update and upgrade your system packages:
Step 2: Set Up a Python Virtual Environment
This keeps your LocalStack CLI isolated and avoids the externally-managed-environment pip error.
Install the required Python tools:
Create a virtual environment for LocalStack:
This keeps your LocalStack CLI isolated and avoids the externally-managed-environment pip error.
Install the required Python tools:
Open your first terminal.
Activate the venv:
Step 4: Run CLI Commands in a Second Terminal
Open a second terminal window.
Activate the venv again:
Look back at Terminal 1—you'll see log output like:
Conclusion: You're Now Cloud-Free and Cloud-Ready
You've got Docker, LocalStack, and CLI tools working together on Debian Linux—and you just created your first bucket without touching AWS. From here, you can explore uploads, events, Lambdas, and more, all locally, all free.
In a future post, we'll show how to upgrade your AWS CLI to v2 for even more features.
You've got Docker, LocalStack, and CLI tools working together on Debian Linux—and you just created your first bucket without touching AWS. From here, you can explore uploads, events, Lambdas, and more, all locally, all free.
In a future post, we'll show how to upgrade your AWS CLI to v2 for even more features.
Need AWS Expertise?
We'd love to help you with your AWS projects. Feel free to reach out to us at info@pacificw.com.
Written by Aaron Rose, software engineer and technology writer at Tech-Reader.blog.
Comments
Post a Comment