These guides support organizations that already operate a self-hosted data plane. For new organizations looking to keep data in your own cloud, see Bring your own cloud (BYOC).
Upgrading to data plane v2.0? It requires a multi-step migration with irreversible infrastructure changes. Follow the Upgrade to v2.0 guide instead.
- AWS
- GCP
- Azure
This guide shows the routine process for upgrading the Braintrust data plane in your AWS account.See all module releases: GitHub ReleasesReview the planned changes before applying:Apply the changes:This updates both the infrastructure and the data plane components in a single apply.On module v6.9.0 and later, the apply waits for the Brainstore reader and fast reader fleets to finish their instance refreshes before it updates the API ECS services and the API, catchup ETL, automation, and billing Lambda functions, so new API versions don’t serve traffic before Brainstore is ready. The apply can take noticeably longer as a result. During the refresh, reader capacity can temporarily double. Writer nodes refresh independently and don’t hold up the apply.
Upgrading from AWS Terraform module v5.x to v6? It requires a two-step apply to move the API from Lambda to ECS. Follow the Upgrade to v6 guide instead.Upgrading from v6 to v7 changes the defaults for API routing and the Braintrust Gateway. Follow the Upgrade to v7 guide instead.
How it works
On AWS, the Braintrust data plane runs on ECS and EC2 (Terraform module versions before v6.0 run the API on Lambda). The data plane version is bundled into the Terraform module — each module release pins specific versions of the Braintrust API and Brainstore inVERSIONS.json. When you update your module source to a newer version and run terraform apply, Terraform automatically deploys the corresponding data plane.To check which data plane version you’re currently running, go to Settings > Data plane in the Braintrust UI.1. Update the module version
Check the Self-hosting releases page for your target data plane version to find the minimum Terraform module version required. Then update the?ref= in your module source:2. Review and apply
As of v5.6.0, the
modules/services sub-module requires the hashicorp/http provider ~> 3.3. If your .terraform.lock.hcl pins an older 3.x version, run terraform init -upgrade before terraform plan or terraform apply.If the apply fails while waiting for Brainstore
If the apply fails while waiting for Brainstore
Terraform waits up to 14 minutes for the refreshes, then up to 14 more minutes in the same apply. The apply fails, and API updates stay blocked, if a refresh fails, health checks fail, or the second wait also runs out.Fix the reported failure and rerun
terraform apply. The apply checks live AWS state and resumes an active refresh. Progress and refresh IDs are logged to the /braintrust/<deployment_name>/<deployment_name>-BrainstoreDeployment CloudWatch log group.Next steps
- Feature availability: Find the data plane version each feature requires.
- Self-hosting releases — review release notes and infrastructure requirements for each data plane version
- Configuration — configure telemetry, network access, rate limiting, and other options
See also
Releases and availability- Self-hosting releases: Review release notes and the minimum Terraform or Helm version for each data plane version.
- Feature availability: Find the data plane version each feature requires and which features each cloud supports.
- Architecture: Understand the control plane, data plane, and where data is stored.
- Deploy Braintrust: Deploy the data plane on AWS, GCP, or Azure.
- CloudFormation: Manage a legacy AWS CloudFormation deployment.
- Configure your deployment: Review the settings available after deployment.
- Security and access: Restrict organization access, secure customer data, and harden pods.
- Networking and connectivity: Configure URLs, rate limits, load balancers, and network access paths.
- Scaling and storage: Size API and Brainstore compute.
- Self-host the Braintrust Gateway: Deploy the Gateway in your data plane.
- Loop runtime: Run Loop threads in isolated sandboxes on AWS or GCP.
- Telemetry and data retention: Control telemetry and enable data retention.
- Upgrade your deployment: Follow the routine upgrade process.
- Upgrade to data plane v2.x: Migrate to the data plane v2 series.
- Upgrade to Terraform module v6: Move AWS API traffic from Lambda to ECS.
- Upgrade to Terraform module v7: Route AWS API traffic to ECS and deploy the Gateway by default.