- VPC
- Subnets
- Routing
- Gateways
- VPC endpoints
- Flow logs
- Egress controls.
Before you begin
Complete the BYOC prerequisites and enable BYOC on your organization. Create the VPC:- In the same AWS account as the cross-account IAM role, and
- In the region where you plan to deploy the data plane.
Meet the network requirements
LangSmith checks the following requirements when you supply a VPC, including one created with the reference module.Configure the VPC and subnets
- Ownership and region: The VPC and every supplied subnet must belong to the AWS account containing the IAM role, exist in the requested region, and be in the
availablestate. - VPC configuration: Use default instance tenancy and a primary RFC 1918 IPv4 CIDR from
/16through/18. Enable both DNS support and DNS hostnames. - Availability zones: Supply exactly one application subnet and one database subnet in each of two or three standard regional availability zones. If you supply public subnets, provide one in each of the same zones.
- Subnet ranges: Every subnet must have a private IPv4 CIDR within the VPC’s primary CIDR. Supplied subnet CIDRs must not overlap.
- Subnet IDs and tags: Each subnet ID must be unique across all tiers.
Larger subnets have smaller prefix lengths. Both subnet size and available address count must meet the requirements.
Configure routes
The VPC must have a main route table. Validation uses each subnet’s explicit route table association, or the main route table if there is no explicit association.- Private application subnets: Each must have an active IPv4 default route (
0.0.0.0/0) to customer-managed egress, such as a NAT gateway or transit gateway. A direct route to an internet gateway does not satisfy this requirement. - Public subnets: Each supplied public subnet must have an active IPv4 default route to an internet gateway attached to the VPC.
- Database subnets: The reference module keeps these isolated, without a default egress route.
Configure network ACLs
Each supplied subnet must have an associated network ACL that permits the traffic below. Validation evaluates rules in priority order, including deny rules.
These are network ACL requirements. Workload security groups and your egress controls also govern which connections succeed.
Create the VPC with Terraform
Using the Terraform module is optional. You can create the VPC with your own tooling and use the module as a reference to meet the network requirements.
byovpc Terraform module creates a network aligned with the LangSmith data plane requirements. Use it to create a VPC, or configure an existing VPC to meet the network requirements.
To create the VPC:
- Configure the AWS provider for your target account and supported region.
- Add the module to your Terraform configuration. Select a private CIDR range that does not overlap with networks you plan to peer with.
- Initialize Terraform, review the plan, and apply it in your account.
langsmith_network_config output contains the VPC ID and subnet IDs to supply when you create the data plane.
Configure connectivity
The VPC module lets you configure:- AWS service endpoints.
- Control plane PrivateLink and private DNS.
- VPC flow logs.
- Public subnets for internet-facing load balancers.
- NAT and internet gateways, or customer-managed centralized egress.
byovpc Terraform module.
Create the reduced-permission IAM role
Thelangsmith-byoc-role Terraform module creates the cross-account role LangChain assumes to manage the data plane.
To create the role:
- Copy the external ID using the button next to the Data Planes header in Settings > Data Planes. Pass it as
external_id. The role’s trust policy must use this value in itsExternalIdcondition. - Set
allow_vpc_creation_permissions = falseand supply the VPC ID in thevpc_idsinput. - If you require internet-facing load balancers, set
allow_public_ingress = true. Otherwise, leave it disabled. - Review and apply the role module, then retain its
crossplane_role_arnoutput for data plane creation.
vpc_ids.
Supply the VPC and subnet IDs
When creating the data plane, supply the name, AWS region, and IAM role ARN from onboarding, together with the following network values:
LangSmith validates the network before provisioning. Correct any reported network or IAM permission errors, then submit the request again. Validation checks the AWS configuration; you remain responsible for working connectivity through any custom routing, DNS, endpoint policies, and egress filters.
After creation, continue with provisioning and private connectivity (Step 4).
Maintain the network
Keep the customer-managed network available throughout the data plane’s lifetime. You manage changes to routes, gateways, endpoints, DNS, network ACLs, and flow logs. The VPC, availability zones, and private subnet configuration cannot be changed after creation. You cannot convert a data plane between a LangChain-managed VPC and BYOVPC. Deleting a data plane removes LangChain-managed resources. Your VPC and other customer-managed network resources remain under your control and require separate cleanup after the data plane is deprovisioned.See also
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

