Running an EC2 instance locally using LocalStack

In this video, you'll learn how you can run an Elastic Compute Cloud (EC2) instance locally using LocalStack's core cloud emulator. Elastic Compute Cloud (EC2) is a core service within Amazon Web Services (AWS) that provides scalable and flexible virtual computing resources. EC2 enables users to launch and manage virtual servers, commonly referred to as instances. LocalStack is a core cloud emulator that allows you run EC2 instances using a Docker backend. Under the hood, LocalStack spins another Docker container that mimics an EC2 instance functionality, including other add-on features such as EBS, IMDS, and Load Balancers. Corrections: LocalStack will no longer provide the Ubuntu 20.04 Docker AMI (used in this video) by default in the next major release, though it can still be manually added, and on nine minutes & nine seconds mark, we meant 'localhost' instead of 'localstack'. To access the web server, you can hit the localhost:8000 endpoint as shown in the video.

Related Talks

From Local to Production: The CI/CD Flow That Doesn't Suck

This is where it all comes together. CI/CD lets dev teams ship code automatically — but only if your pipeline is built to handle the cloud. In this episode, I show you how local testing + automated deployment = cloud apps that ship faster, safer, and smarter. Stick around to the end, this is the final episode of WTH is the Cloud?!

Learn More
Learn More
From DevOps to MLOps: Scaling ML models to 2 Million+ requests per day

The challenge with Machine Learning (ML) models is productionizing. It requires data ingestion, data preparation, model training, model deployment, and monitoring. Adopting MLOps practices is similar to DevOps practices. In MLOps, the workload changes, but some core principles like automation, continuous integration/continuous deployment (CI/CD), and monitoring. Taking DevOps practices, I will discuss the similarities and differences in adopting MLOps practices. In this talk, Chinmay takes a production use case to scale ML models to 2 million+ daily requests. It leverages Google Cloud's (GCP) infrastructure to use its GPU and other services. This talk will help you draw similarities between DevOps and MLOps as a DevOps practitioner and help you learn how to run Machine Learning models at the production scale with best practices.

Learn More
Learn More
Emulating AWS CI CD pipelines with LocalStack

Testing AWS CI/CD pipelines in the cloud can be slow, error-prone, and hard to debug, especially when you're wrestling with IAM permissions or waiting on long feedback cycles. This session walks through how you can now emulate complete DevOps workflows locally using LocalStack. We cover recent additions to LocalStack that support new service providers such as CodeBuild for running build processes across different runtimes directly on your machine, CodeDeploy for emulating deployment steps without touching the real infrastructure, and CodePipeline for creating and testing CI pipelines, transitions, and triggers locally. Through a live demo, we’ll walk through a working example of a CI/CD pipeline — building a Rust project, deploying it, and running the pipeline stages — all without leaving your laptop. This session is useful for developers building or debugging AWS-native CI/CD workflows and looking for faster, more controlled ways to test them.

Learn More
Learn More

Launch yourself in the world of local cloud development

Try for free
Try for free
Talk to Sales
Talk to Sales