Requirements and limitations
- Every service is optional. A service without a key keeps AWS-managed encryption.
- Keys must be symmetric encryption keys in the data plane region. They can be in the data plane account or in another AWS account.
- You set keys when you create the data plane. Keys cannot be added to existing data planes.
- After creation, the
ebs,eks,rds, andelasticachekeys cannot change. To change thes3key, contact the LangChain team.
Prepare the keys
Before you create the data plane, prepare the keys:- In the
langsmith-byoc-roleTerraform module, setcmk_service_key_arnsto a key ARN for each service. To use one key for every service, set the same key ARN for each service. With BYOIAM, set it in the BYOIAM module too. - Update the key policies as the module README describes. The
ebskey policy must allow the Auto Scaling service-linked role. When LangSmith manages the VPC, thes3key policy must allow VPC flow log delivery.
ebs key in another account also needs a grant for the Auto Scaling service-linked role, created from the data plane account, as the module README describes. LangSmith cannot read the policy of a key in another account, so make sure the policy is complete before you create the data plane.
Set the keys when you create the data plane
In the UI, open Encryption keys under Configuration when you create the data plane. Choose One key for all services or A key per service, then enter the key ARNs. Through the API, includecustomer_managed_keys in the body of the create data plane request, alongside the other required fields. It takes two fields:
key_arn: A key ARN for every service.service_key_arns: An object whose keys are service names and whose values are key ARNs.
key_arn, service_key_arns, or both. A key in service_key_arns overrides key_arn for its service. Without key_arn, a service that service_key_arns does not list keeps AWS-managed encryption.
How LangSmith validates the keys
Before it creates the data plane, LangSmith checks each key:- The key exists and is enabled.
- The key is a symmetric encryption key.
- The provisioning role can use the key.
- The
ebskey policy allows the Auto Scaling service-linked role. - When LangSmith manages the VPC, the
s3key policy allows VPC flow log delivery.
See also
- BYOC onboarding
- BYOC architecture
- Bring your own IAM roles
- Bring your own VPC
- Create a new data plane API reference
Connect these docs to your agent of choice via MCP for real-time answers.

