---
title: "BYOC (Bring Your Own Cloud)"
description: "Run E2B sandboxes in your own AWS, GCP, or Azure account. Sandbox traffic, snapshots, and logs stay in your VPC, E2B operates the cluster, and your code doesn't change."
url: "https://e2b.dev/byoc"
---

# BYOC (Bring Your Own Cloud)

> BYOC runs E2B sandboxes inside your own AWS, GCP, or Azure account. Sandbox traffic, snapshots, and logs stay in your VPC, E2B operates the cluster, and your code doesn't change.

BYOC is available on the Enterprise plan.

## Your data stays in your cloud

- Everything your agents touch stays in your account: sandbox traffic, template build sources, snapshots, logs, and storage, under your own encryption, retention, and access policies. Traffic goes from your app straight to your VPC and never touches E2B Cloud.
- All E2B sees: control-plane API calls in, over TLS, and cluster CPU and memory metrics out. Nothing from inside your sandboxes. See the [BYOC architecture](https://docs.e2b.dev/byoc#architecture).
- Data residency, encryption keys, and audit logging stay under the controls you already run. E2B's [SOC 2 Type II report](https://e2b.dev/security.md) covers the E2B software and control plane; the compliance posture of your cloud account stays yours.

## Your cloud, your rules

BYOC runs in an account inside your own cloud organization, so the guardrails you already enforce apply from day one. E2B operates the cluster through a role you grant, scoped to that one account, and every change it makes lands in your own audit logs.

- Guardrails: your organization policies apply, such as AWS SCPs, GCP organization policies, or Azure Policy.
- E2B access: scoped to one dedicated account through an IAM role, service account, or Entra ID application you grant, and yours to review or revoke.
- Audit trail: E2B's changes are recorded in CloudTrail, Cloud Audit Logs, or the Azure Activity Log.
- Encryption and retention: your policies on storage, snapshots, and logs.
- Data residency: the region you choose at onboarding.

## No platform team required

E2B provisions, monitors, and operates the cluster in your account. Moving from E2B Cloud doesn't mean a rewrite: the SDK, CLI, and API are the same, and sandboxes behave the same, pause and resume included. SLA and support terms are set in your Enterprise agreement.

| | E2B Cloud | BYOC | E2B Embed (self-hosted) |
| --- | --- | --- | --- |
| Where sandboxes run | E2B's Google Cloud account | Your AWS account, GCP project, or Azure subscription, inside your VPC | One Linux machine you operate |
| Who operates it | E2B | E2B, using Terraform and machine images | You |
| Templates, snapshots, runtime logs | E2B Cloud | Your VPC | The machine |
| SDK, CLI, and API | Same | Same | Same |
| How to get it | Sign up | Enterprise plan, contact E2B | [Install E2B Embed](https://github.com/e2b-dev/runtime/tree/main/embed#readme) (Apache-2.0) |

## Private when you need it, elastic when you grow

- Private access: sandboxes can be reachable only from your own network. The load balancer can be internal, reached through VPC peering, or through Private Link on Azure.
- Control-plane link: traffic between E2B Cloud and your VPC is encrypted with TLS. With VPC peering to E2B Cloud, the load balancer needs no public IP address.
- Autoscaling: orchestrator nodes scale horizontally. On AWS and GCP they autoscale between a minimum and maximum you set with E2B; on Azure the node count is fixed and E2B changes it on request.
- What runs in your account: orchestrators (run sandboxes and build templates), edge controllers (route sandbox traffic and expose the cluster management API to the E2B control plane), monitoring (logs and metrics kept inside your VPC), and storage (templates, snapshots, runtime logs, and the template image registry).

## Bring an account, E2B handles the rest

You bring a dedicated cloud account and choose a region.

- AWS: a dedicated account and an IAM role E2B uses to manage its resources. Quotas may need raising.
- Google Cloud: a dedicated project with billing enabled. You apply one Terraform module that creates the deployment service account.
- Azure: a dedicated subscription. You apply one Terraform module that grants E2B scoped access. No credentials change hands.

When the cluster is running, E2B adds a project to your E2B account that your SDK and CLI use like any other.

## Next steps

- [Book a call with an engineer](https://e2b.dev/contact.md).
- [Read the BYOC documentation](https://docs.e2b.dev/byoc).
- [E2B for Enterprise](https://e2b.dev/enterprise.md).
- [Security and compliance](https://e2b.dev/security.md).
