Mounting local directories for ECS tasks with LocalStack

LocalStack's cloud emulator lets you run Amazon Elastic Container Service (ECS) clusters and tasks on your local computer. It's sometimes useful to mount code from the host filesystem directly into the ECS container. This helps quickly test changes without needing to rebuild and redeploy the ECS Task's Docker image each time.This video explains how to use code mounting with the ECS bind mounts feature. Here are the links to the resources mentioned in the video:• Sample repository: https://github.com/localstack-samples/ecs-code-mounting-python-cdk• LocalStack Docs: https://docs.localstack.cloud/user-guide/aws/ecs/#mounting-local-directories-for-ecs-tasks• AWS Docs: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/bind-mounts.html

Related Talks

Getting started with the LocalStack Dagger module

Looking to bring AWS emulation directly into your CI/CD pipelines? This hands-on session with Harsh Mishra shows you how to integrate LocalStack with Dagger to level up your development workflows.In this session, you'll learn how to:- Run full AWS emulation locally inside Dagger pipelines- Spin up LocalStack as a service using Dagger’s composable syntax- Use Cloud Pods for persistent state across pipeline runs- Create ephemeral environments for fast, clean, isolated testingKeep your cloud workflows repeatable, testable, and fastWhether you’re building serverless apps, managing infrastructure-as-code, or optimizing your DevOps pipelines, this talk will help you bring LocalStack into the heart of your CI/CD setup.

Learn More
Learn More
Getting started with LocalStack's Extension for Docker Desktop

LocalStack's Docker Extension allows developers to manage and run cloud applications locally within Docker Desktop efficiently. With a fully-integrated experience with features such as configuration profiles, container logs, and more, developers can now easily manage their LocalStack instance.In this video, Harsh from LocalStack discusses the LocalStack Docker Extension and how you can capitalize on an intuitive user experience to manage your LocalStack image, configuration profiles, and container logs directly within the Docker Desktop.

Learn More
Learn More
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

Launch yourself in the world of local cloud development

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