AWS announced on November 25, 2026 a developer preview that lets Lambda durable functions start, drive and shut down Lambda MicroVMs. The feature arrives as an extension to the AWS Durable Execution SDK for TypeScript and Python, adding ready-made durable operations for sending work into a MicroVM and tracking its lifecycle.
The target use cases are jobs that should never run next to your own code: CI/CD steps, security scanners, build farms and agent-written programs. Pairing long-running, checkpointed workflows with VM-level isolation gives teams one serverless pattern for running code they do not fully trust.
What AWS announced
Lambda durable functions let a single function run multi-step workflows for as long as one year, with progress saved at each step and failed steps retried automatically. Lambda MicroVMs are a separate serverless compute option that isolates each workload in its own virtual machine, starts or resumes almost instantly and can keep state between tasks.
The new extension connects the two. A durable function can now treat MicroVM work as one more durable step. Key points from the announcement:
- Two modes: run a single task in a fresh MicroVM, or open a MicroVM session where several tasks work on one shared file system and memory.
- Lifecycle handled for you: the durable function launches the MicroVM, checkpoints each task, retries failures and renews MicroVM access tokens whenever they run low.
- Parallel fan-out: one durable function can drive many MicroVMs at the same time.
- Event triggers: the orchestrating function can be started by events from Amazon SQS, Amazon EventBridge and similar services.
- Worker library: an optional package runs inside the MicroVM image to accept tasks, send heartbeats and return results.
How it works in code
The TypeScript extensions package on GitHub shows the shape of the API, and every API in it is labelled experimental. A helper named microvm starts one MicroVM, hands it a job, waits for the answer and then terminates the VM. A second helper, microvmSession, keeps one VM alive while your handler sends it several jobs in turn.
Each job can carry its own overall timeout and a heartbeat timeout. The README advises setting a heartbeat on every job, because otherwise a job whose MicroVM has died keeps waiting until its full timeout runs out. A session can live for at most eight hours.
Billing is a notable detail. The README explains that the function invocation finishes while the MicroVM does its work, so Lambda does not charge function compute time during the wait. Failures surface as a MicrovmError base type with subclasses for specific cases such as a timed-out or failed job.
For parallel work, the README pairs the helper with the SDK's map operation, giving each item its own child context. Jobs can also be sent to named routes that the worker inside the VM exposes, so one image can serve build, test and scan tasks.
What it means for developers
This is a practical answer to a growing problem. Coding agents and plugin systems produce code that nobody has reviewed, and running it inside an ordinary function or container shares too much with the host. A MicroVM per job, managed by a workflow that survives crashes and restarts, is a cleaner boundary.
The pattern also replaces a lot of glue code. Teams building their own job runners usually write queues, polling loops, retry tables and cleanup jobs for stray VMs. Here, those concerns move into checkpointed steps that the SDK replays after a failure.
There are limits to keep in mind. This is a developer preview, AWS says it may change and should not be used for production workloads, and the package APIs are marked experimental. Session return values are checkpointed, so they must be JSON-serializable, and long sessions still cap out at eight hours.
Developers already using durable functions can see how the feature set has grown, from pausing, resuming and deleting executions to OpenTelemetry tracing. MicroVM orchestration extends the same model to isolated compute.
How to get started
To try the preview, add the extensions package next to the Durable Execution SDK in your function (JavaScript/TypeScript or Python), and bake the matching MicroVM worker library into your MicroVM image.
In the TypeScript version, the MicroVMs client from the AWS SDK is an optional peer dependency that you install yourself, and the core SDK must be version 2.6.0 or later.
Any AWS Region with both durable functions and MicroVMs available can use the extension. AWS points to its MicroVM orchestration documentation and a sample application, and asks for feedback through issues in the SDK repositories on GitHub.
Conclusion
The new developer preview turns Lambda MicroVMs into a first-class step inside Lambda durable functions, with checkpointing, retries, parallel runs and lifecycle handling built in. It is aimed at isolated execution of untrusted or AI-generated code. Teams should experiment now but keep it out of production until the APIs settle.
Sources
- AWS What's New: AWS Lambda now supports orchestrating MicroVMs with Lambda durable functions
- GitHub: AWS Durable Execution SDK Extensions for JavaScript and TypeScript
- AWS Documentation: Lambda MicroVMs guide
See my articles more often when you search Google.
