<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/stop-deploying-to-ecs-just-to-see-if-your-code-works-7ls0uicxy" -->

---
title: Stop Deploying to ECS Just to See If Your Code Works
description: MetalBear launched mirrord for ECS, letting code run on a laptop, CI runner or coding agent's sandbox as if it were a live ECS task in staging. It uses the...
canonical: https://daily.dev/posts/stop-deploying-to-ecs-just-to-see-if-your-code-works-7ls0uicxy
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Stop Deploying to ECS Just to See If Your Code Works | daily.dev
og:description: MetalBear launched mirrord for ECS, letting code run on a laptop, CI runner or coding agent's sandbox as if it were a live ECS task in staging. It uses the...
og:url: https://daily.dev/posts/stop-deploying-to-ecs-just-to-see-if-your-code-works-7ls0uicxy
og:image: https://api.daily.dev/og/posts/7LS0uIcXY.png
og:image:alt: Stop Deploying to ECS Just to See If Your Code Works
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Stop Deploying to ECS Just to See If Your Code Works

**[MetalBear](https://daily.dev/sources/metalbear)** · 5 min read · 2 upvotes · 0 comments

## Summary

MetalBear launched mirrord for ECS, letting code run on a laptop, CI runner or coding agent's sandbox as if it were a live ECS task in staging. It uses the task's network, environment variables and IAM task role, so it reaches the same databases and APIs the deployed service reaches. A small setup container added to the task definition loads mirrord into the app container once, and stays there without redeploys. Requests carrying a session header route to your machine via a sessions-manager component over outbound HTTPS, while other traffic still hits the deployed task. Lambda, Cloud Run, Vercel and Cloudflare support is on a waitlist.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://metalbear.com/blog/stop-deploying-to-ecs>

## Questions this post answers

### how can I test code changes against a live ECS task without redeploying

mirrord for ECS lets your code run locally, in CI, or in a coding agent's sandbox as if it were a live ECS task in staging. A setup container added once to the task definition loads mirrord into the app container, giving your local process the task's network, environment variables, and IAM task role so it reaches the same databases and APIs.

_Engineers wiring up faster ECS feedback loops track tools like this via daily.dev._

### why don't Kubernetes-style traffic mirroring tools like Telepresence work on ECS

ECS lacks the hooks Kubernetes provides: you can't add a container to a running task or inject one when a task starts, and there's no shared API a laptop and task can both reach and authenticate against. Telepresence, Signadot, and mirrord were all originally built on Kubernetes for exactly this reason, relying on its API and RBAC for connectivity and auth.

_Teams comparing dev-environment tools across Kubernetes and ECS follow these trade-offs on daily.dev._

### how does mirrord route only my requests to my local machine on a shared staging environment

mirrord uses a session header: requests to the staging address carrying your chosen session key (set via 'mirrord up --key') route to your local machine, while all other traffic still goes to the deployed task. Both your machine and the task connect outbound over HTTPS to a sessions-manager component that pairs and relays traffic, so no inbound ports need to open.

_Developers sharing staging environments across a team keep tabs on setups like this via daily.dev._

## Similar posts on daily.dev

- [Give Your AI Agent a Playground, Not a Sandbox](https://daily.dev/posts/give-your-ai-agent-a-playground-not-a-sandbox-eqfzhdbvy) · MetalBear · 2 upvotes · 0 comments
- [Your container runs. Everything around it shouldn’t be your problem.](https://daily.dev/posts/your-container-runs-everything-around-it-shouldn-t-be-your-problem--ogniwsgsz) · The New Stack · 0 upvotes · 0 comments
- [AWS Launches ECS Express Mode to Simplify Containerised Application Deployment](https://daily.dev/posts/aws-launches-ecs-express-mode-to-simplify-containerised-application-deployment-kcvvkbiqr) · InfoQ · 1 upvotes · 0 comments
- [Why ECS Outlives Every Convenience Layer AWS Builds On Top Of It](https://daily.dev/posts/why-ecs-outlives-every-convenience-layer-aws-builds-on-top-of-it-4xnkl9er4) · AWS Fundamentals · 21 upvotes · 1 comments

---

Tags: [#aws](https://daily.dev/tags/aws), [#ai-agents](https://daily.dev/tags/ai-agents), [#kubernetes](https://daily.dev/tags/kubernetes), [#productivity](https://daily.dev/tags/productivity)

[View this post on daily.dev](https://daily.dev/posts/stop-deploying-to-ecs-just-to-see-if-your-code-works-7ls0uicxy)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Stop Deploying to ECS Just to See If Your Code Works","url":"https://daily.dev/posts/stop-deploying-to-ecs-just-to-see-if-your-code-works-7ls0uicxy","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/stop-deploying-to-ecs-just-to-see-if-your-code-works-7ls0uicxy"},"datePublished":"2026-11-18T08:55:02.021Z","dateModified":"2026-11-18T08:55:33.262Z","description":"MetalBear launched mirrord for ECS, letting code run on a laptop, CI runner or coding agent's sandbox as if it were a live ECS task in staging. It uses the...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/7f3de725ffecbbd4a67a32caced9b211?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/7f3de725ffecbbd4a67a32caced9b211?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"MetalBear","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"MetalBear","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/3165f5f876b147e2a160f4bf0fcaa13a","url":"https://daily.dev/sources/metalbear"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/stop-deploying-to-ecs-just-to-see-if-your-code-works-7ls0uicxy","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"aws,ai-agents,kubernetes,productivity","timeRequired":"PT5M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"MetalBear","item":"https://daily.dev/sources/metalbear"},{"@type":"ListItem","position":3,"name":"Stop Deploying to ECS Just to See If Your Code Works"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/stop-deploying-to-ecs-just-to-see-if-your-code-works-7ls0uicxy#faq","mainEntity":[{"@type":"Question","name":"how can I test code changes against a live ECS task without redeploying","acceptedAnswer":{"@type":"Answer","text":"mirrord for ECS lets your code run locally, in CI, or in a coding agent's sandbox as if it were a live ECS task in staging. A setup container added once to the task definition loads mirrord into the app container, giving your local process the task's network, environment variables, and IAM task role so it reaches the same databases and APIs. Engineers wiring up faster ECS feedback loops track tools like this via daily.dev."}},{"@type":"Question","name":"why don't Kubernetes-style traffic mirroring tools like Telepresence work on ECS","acceptedAnswer":{"@type":"Answer","text":"ECS lacks the hooks Kubernetes provides: you can't add a container to a running task or inject one when a task starts, and there's no shared API a laptop and task can both reach and authenticate against. Telepresence, Signadot, and mirrord were all originally built on Kubernetes for exactly this reason, relying on its API and RBAC for connectivity and auth. Teams comparing dev-environment tools across Kubernetes and ECS follow these trade-offs on daily.dev."}},{"@type":"Question","name":"how does mirrord route only my requests to my local machine on a shared staging environment","acceptedAnswer":{"@type":"Answer","text":"mirrord uses a session header: requests to the staging address carrying your chosen session key (set via 'mirrord up --key') route to your local machine, while all other traffic still goes to the deployed task. Both your machine and the task connect outbound over HTTPS to a sessions-manager component that pairs and relays traffic, so no inbound ports need to open. Developers sharing staging environments across a team keep tabs on setups like this via daily.dev."}}]}
```

