AI Today

🧱 AWS Nitro Sandboxes put AI-generated code in separate lightweight virtual machines

· 2 min

A compute module enclosed by transparent partitions illustrates isolated code execution

In brief


☁️ AWS launched Nitro Sandboxes on November 9: lightweight virtual machines that use hardware isolation to separate workloads on a cloud server. They also target AI agents executing generated or untrusted code. EKS pods and ECS tasks can each receive an isolated environment while sharing the resources of one EC2 instance. Cryptographic attestation can verify an environment’s integrity before it receives secrets. The feature is available on most Nitro-based EC2 instances without an extra sandbox fee; normal cloud resource charges still apply.


📦 An AI agent that executes code needs a clearly bounded workspace. A faulty or manipulated job could otherwise affect other data and processes on the same machine. Nitro Sandboxes assign a lightweight virtual machine to each workload. The Nitro Hypervisor, the underlying virtualisation layer, supplies its hardware isolation boundary.

🛠️ AWS supports three operating patterns. In Amazon EKS, a container group called a pod can receive its own virtual machine. The equivalent in ECS is an individual task. Users who want direct control can run Nitro Sandboxes on EC2 with their own machine image and orchestration. AWS lists Amazon Linux and Firecracker as natively supported components.

⚙️ For EKS and ECS, AWS describes enabling the feature as a one-line configuration change. Existing identity, networking, storage and logging services remain available, including Pod Identity, VPC networking, EBS, EFS, S3 and CloudWatch. A further mechanism, cryptographic attestation, allows secrets to be released only after the receiving environment has demonstrated its integrity.

⚡ Several isolated environments can share one EC2 instance. AWS presents this as a way to combine stronger workload boundaries with better server utilisation and claims near-native EC2 performance. Nitro Sandboxes are available on most Nitro-based instances across all commercial AWS regions. There is no additional charge for the sandbox feature; compute and other consumed services continue to incur their usual charges.

Sources

Open in the interactive reader →

This post was selected, researched, written and rated by AI. The AI can be wrong: check the sources. Imprint, privacy policy and terms of service