As of November 30, 2026, AWS Nitro Sandboxes were available in all commercial AWS regions at no additional charge. For a Kubernetes pod, ECS task or EC2 workload that opts in, the Nitro hypervisor carves a lightweight virtual machine out of a running EC2 instance. On EKS, a pod can run its existing containers with their own guest kernel by setting runtimeClassName to isolated-sandbox or confidential-sandbox. The choice depends on whether the workload can trust the parent instance.
AWS identifies coding agents as a use case for running untrusted code, alongside CI builds, remote IDEs, multi-tenant SaaS and regulated workloads. For applications sensitive to startup time, AWS points to the open-source agent-sandbox project, which can allocate a prestarted VM from a warm pool in about two seconds. That figure describes allocation from the pool, not a cold start.
What changes on the EKS node
According to the EKS documentation, containerd-shim-nitro-sandbox-v2 on the parent instance starts a Firecracker microVM as a first-level guest using hardware-assisted virtualization. An agent inside the VM runs the pod’s containers through its own containerd. The guest and parent communicate over virtio and vsock, but the guest shares neither its kernel nor its memory mappings with the parent or neighboring sandboxes.
EKS Auto Mode supplies both runtime classes and provisions sandbox-capable nodes on demand. On standard EKS, operators must build a sandbox-enabled Amazon Machine Image for their node groups or Karpenter. AWS Container Hero Sandip Das also identifies Kubernetes 1.36 or later as a prerequisite. For managed node groups, he says the launch template must enable Nitro Enclaves; otherwise, sandbox pods remain Pending. Workloads that need credentials must use Pod Identity rather than IAM Roles for Service Accounts (IRSA).
Isolated mode trusts the host; confidential mode does not
Isolated mode protects the parent and neighboring workloads from an untrusted guest while retaining kubectl exec, logs and process listings. Das notes that the protection works in one direction: a compromised parent can still observe or alter unencrypted traffic and DNS, write to a pod’s /etc/hosts, and issue Pod Identity credentials for any pod on the node.
Confidential mode moves enforcement inside the VM. A Cedar policy generated from the pod specification pins image digests, arguments, environment, mounts and capabilities, and blocks exec and standard input. The Nitro Secure Module records image and policy measurements in platform configuration registers (PCRs). A KMS key policy can release a key only to a sandbox with matching measurements. Image layers can also be encrypted so the parent transports ciphertext it cannot read.
The EKS documentation makes a distinction between recording measurements and verifying them. Unless a KMS policy or an external verifier checks the PCR values, the measurements go unverified and the confidentiality guarantee is incomplete.
Network isolation is a separate choice in either mode. An annotation launches the sandbox without a network device, removing access to DNS, NTP, the Instance Metadata Service and Pod Identity. HTTP and TCP probes also stop working.
Capacity and device limits
At launch, Firecracker does not support passing host devices through to the guest, so GPU pods cannot use either sandbox class. For CPU workloads, EKS caps both the total number of sandbox vCPUs and the number of sandboxes at five times the node’s vCPU count. Under that limit, a four-vCPU node can host at most 20 one-vCPU sandboxes or five four-vCPU sandboxes. The ceiling is halved on instance types that permit CPU overcommit.
Thread placement also matters. On processors with simultaneous multithreading, core scheduling prevents two sandboxes from using sibling threads on the same core, leaving roughly half the nominal vCPUs available. Graviton processors have one thread per core and do not face that constraint. Das recommends treating AWS’s description of performance as “near-native” as a vendor claim and benchmarking startup latency, I/O throughput and tail latency for the intended workload.
GKE Sandbox illustrates a different way to account for isolation costs. Its gVisor runtime, available since 2019, intercepts system calls in a user-space kernel, starts in under 200 milliseconds and supports CUDA on some GPUs. Google’s newer microvm class uses Kata Containers and Cloud Hypervisor, reserves 250m CPU and 130 MiB of memory per pod, starts in one to two seconds and does not support GPUs. AWS also chose a VM boundary, but describes its overhead through node density and thread placement rather than a fixed per-pod reservation.
For direct EC2 use, Amazon Linux and Firecracker have native support; other hypervisors can use patches. The EC2 user guide lists supported instance types and notes that snapshots, restore and live migration are not supported at launch.
