Skip to main content
When running LangSmith on Amazon Web Services (AWS), you can set up in either full self-hosted or hybrid mode. Full self-hosted mode deploys a complete LangSmith platform with observability functionality as well as the option to create agent deployments. Hybrid mode entails just the infrastructure to run agents in a data plane within your cloud, while our SaaS provides the control plane and observability functionality. This page provides AWS-specific architecture patterns, service recommendations, and best practices for deploying and operating LangSmith on AWS.
LangChain provides Terraform modules specifically for AWS to help provision infrastructure for LangSmith. These modules can quickly set up EKS clusters, RDS, ElastiCache, S3, and networking resources.View the AWS Terraform modules for documentation and examples.

Reference architecture

We recommend leveraging AWS’s managed services to provide a scalable, secure, and resilient platform. The following architecture applies to both self-hosted and hybrid and aligns with the AWS Well-Architected Framework: Architecture diagram showing AWS relations to LangSmith services

Compute options

LangSmith supports multiple compute options depending on your requirements:
Compute optionDescriptionSuitable for
Elastic Kubernetes Service (preferred)Advanced scaling and multi-tenant supportLarge enterprises
EC2-basedFull control, BYO-infraRegulated or air-gapped environments

AWS Well-Architected best practices

This reference is designed to align with the six pillars of the AWS Well-Architected Framework:

Operational excellence

Security

  • Use IAM roles with least-privilege policies.
  • Enable encryption at rest (RDS, S3, ClickHouse volumes) and in transit (TLS 1.2+).
  • Integrate with AWS Secrets Manager for credentials.
  • Use Amazon Cognito as an IDP in conjunction with LangSmith’s built-in authentication and authorization features to secure access to agents and their tools.

Reliability

  • Replicate the LangSmith data plane across regions: Deploy identical data planes to Kubernetes clusters in different regions for LangSmith Deployment. Deploy RDS and ECS services across Multi-AZ.
  • Implement auto-scaling for backend workers.
  • Use Amazon Route 53 health checks and failover policies.

Performance efficiency

Cost optimization

Sustainability

  • Minimize idle workloads with on-demand compute.
  • Store telemetry in low-latency, low-cost tiers.
  • Enable auto-shutdown for non-prod environments.

Security and compliance

LangSmith can be configured for:
  • PrivateLink-only access (no public internet exposure, besides egress necessary for billing).
  • KMS-based encryption keys for S3, RDS, and EBS.
  • Audit logging to CloudWatch and AWS CloudTrail.
Customers can deploy in GovCloud, ISO, or HIPAA regions as needed.

Monitoring and evals

Use LangSmith to: Integrate with:
Connect these docs programmatically to Claude, VSCode, and more via MCP for real-time answers.