r/aws • u/csantanapr • 15d ago
article AWS Nitro Sandboxes: Hardware-enforced workload isolation on Amazon EKS
Run agentic AI, multi-tenant SaaS, and regulated workloads with the isolation of a dedicated EC2 instance and the simplicity of a Kubernetes pod. Nitro Sandboxes give each pod a hardware-enforced security boundary, built on the same Nitro System that isolated EC2 instances from each other
29
Upvotes
11
u/CubsFan1060 14d ago
This is a cool feature, but note that right now you have to build your own AMI for it if you aren't using the (very expensive) auto mode.
This landed but I still think you need to build your own: https://github.com/awslabs/amazon-eks-ami/pull/2884
On Bottlerocket, it's supported in Auto mode but so far unsupported in the stock AMI.
4
u/WorthRow3022 15d ago
Curious how this compares to Fargate for EKS, which already gives each pod its own VM boundary. Is the main difference that it runs on your own node groups (so DaemonSets, GPUs and custom AMIs still work), or is it about startup time and density? And what's the pod startup overhead in practice? For agent workloads that spin up a sandbox per task, that number decides whether this is usable.
1
u/Dangerous-Sale3243 14d ago
Is this what ECS/Fargate uses?
1
u/steveoderocker 14d ago
Is this/will this be supported outside of EKS i.e if we are running our own Kubernetes cluster on EC2, and loosely integrated with EKS?
1
u/cloudfixer_dev 13d ago
The Fargate comparison hits the nail on the head. Keeping control over the underlying EC2 nodes—especially for GPU access and custom networking—makes this a massive win for agentic AI and multi-tenant workloads where you need pod-level microVM isolation without losing node-level flexibility. Building out the custom AMIs right now is the main hurdle, but it's a solid trade-off for the security boundary.
0
u/mequelkramer 14d ago
This is a useful middle ground between namespace isolation and running separate clusters, and the Fargate comparison is the right question to ask.
Fargate for EKS already gives each pod its own microVM boundary, so the isolation goal is similar. The difference is what you keep control of. With Nitro Sandboxes you stay on EC2, so you can pick instance types, use GPUs, and keep the networking and node setup you already have. That matters a lot for agentic AI and model serving, where you want a pod level hardware boundary around something like vLLM without giving up GPU instances. Fargate is simpler because there are no nodes to manage, but it bills per vCPU and memory, it does not support privileged pods or DaemonSets, and GPU support is limited, so it fits a narrower set of workloads.
A few practical points if you try it. As noted above, right now you need a custom AMI unless you are on EKS Auto mode or Bottlerocket, so budget that setup work. The boundary is per pod, so each pod gets its own microVM, which cuts the shared kernel risk you have with plain namespaces and limits noisy neighbor problems between tenants. And think about cost per pod: you pay for the whole EC2 instance underneath, so it makes sense when the isolation is worth a dedicated instance per pod or per tenant, and less sense for lots of tiny pods where Fargate or plain namespaces would be cheaper.