Stop Deploying to ECS Just to See If Your Code Works
Mirrord is a new tool for testing code in Amazon ECS without the need for deployments. Rather than building an image, pushing it, and deploying it repeatedly to see if a change works, developers can now run code locally and in their CI runners or coding agents' sandboxes just like a live task in staging. This allows them to find out if a change works by simply running it, without any deployment or spinning up of an environment.
Mirrord was built specifically for ECS, as other tools in this category like Telepresence and Signadot rely on Kubernetes features that ECS lacks. To make it work on ECS, Mirrord had to build its own way into the task and establish a connection between the developer's machine and the task, while ensuring authentication for both sides. A setup container is added to the task definition once and stays in place, so changes can be made to mirrord itself without redeploying.
When a task starts, the setup container loads mirrord into the app container, allowing it to run with the app's network and environment. Both the developer's machine and the task make outbound HTTPS connections to a sessions-manager, which pairs them and relays traffic between them. Developers choose where the sessions-manager runs, either in their own Kubernetes cluster or hosted in MetalBear Cloud. Session traffic passes through the sessions-manager over HTTPS, and both developers and tasks authenticate to it.
To run a service locally with mirrord up, developers start the service and send requests with their session header to the service's usual staging address. Requests with the session key go to the developer's machine, while others still go to the deployed task. Outgoing calls from the code inside the task reach the private databases and internal APIs that only the task can access, while the local process runs with the task's environment and IAM task role.
When something goes wrong, developers can simply change the code and run it again, without any need for building or rolling out. Mirrord is a Kubernetes development platform that lets developers and AI coding agents test code in a production-like environment before deploying it. Companies like monday.com, National Australia Bank, and SurveyMonkey have already adopted mirrord to iterate and ship faster while spending less on dev environment infrastructure. To get started with mirrord on ECS, visit metalbear.com/mirrord/ecs.
Written by urgent.news from Lobsters's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.