Amazon Lambda MicroVMs
Serverless compute for isolated code execution
What is Amazon Lambda MicroVMs?
Lambda MicroVMs is a serverless compute primitive that combines VM-level isolation, near-instant launch and resume, and state persistence across interactions. Built on the same Firecracker virtualization powering Amazon Lambda Event Functions, MicroVMs are purpose-built for workloads that execute user- or AI-generated code.
Start a MicroVM, connect over HTTP, and begin executing code for your AI or human users. No infrastructure to manage, no capacity to plan, no isolation expertise required.
What can you build with Lambda MicroVMs?
Isolated, stateful code execution at Lambda speed
Launch your own isolated Firecracker-powered sandbox that starts near-instantly and preserves full memory and disk state for up to 8 hours. Suspend automatically when idle, resume on demand. Built on the same virtualization technology powering Amazon Lambda Event Functions.
Build multi-tenant workloads with serverless simplicity
Launch each MicroVM with a dedicated URL and JWE-based authentication. Simply send each tenant's traffic to their assigned MicroVM. Lambda manages everything from network routing to isolation. Run each tenant on an isolated kernel, memory space, and disk state.
Flexible environment scaling, lifecycle, and state retention
Whether your user sessions last for seconds or several hours, scale resource consumption on demand. MicroVMs can vertically scale up to 4x your configured baseline resources during peak periods. Control the full lifecycle: launch, suspend, resume, and terminate on your terms.
Where does Lambda MicroVMs fit in your architecture?
Lambda MicroVMs is purpose-built for workloads that need isolation, state, and lifecycle control.
Interactive development platforms
Browser-based development platforms need each user to get their own isolated environment instantly. Lambda MicroVMs runs every session in an isolated compute environment with packages and dependencies preserved across interactions, without security hardening complexity.
Vulnerability scanning and security testing
Security tools executing user- or AI-generated code for analysis require VM-level containment. Lambda MicroVMs provides an isolated compute environment per session, preventing malicious code from affecting other users or the host. Environments spin up and tear down on demand, with no residual state between scans.
Data analytics platforms
Data scientists need environments that preserve packages, results, and execution context across sessions without resetting. Interactive query engines need rapid startup with per-tenant isolation. Lambda MicroVMs meets the needs of both workloads: each user gets an isolated compute environment that retains full state for up to 8 hours, suspends when idle, and resumes near-instantly. No re-computation between sessions.
CI/CD and developer productivity platforms
CI/CD platforms routinely run user- or AI-generated code from pull requests and third-party dependencies. Lambda MicroVMs provides an isolated compute environment per pipeline stage. Environments launch near-instantly and resume where they left off. No shared state between jobs.
AI coding assistants and agent sandboxes
AI-powered development tools generate and execute code on behalf of users. If this code runs inside the agent's runtime, it can access credentials and memory. Lambda MicroVMs provides a separate execution boundary per task: an isolated compute environment with no access to agent state and no shared state across users. State persists across multi-step tasks. No infrastructure to manage.
How much does Lambda MicroVMs cost?
Amazon Bedrock AgentCore Now Available in China Regions
Securely build, connect, and run AI agents with any framework and any model, and get to production faster