Skip to main content
Command cheat sheet for day-to-day operations against an AWS LangSmith deployment provisioned with the AWS Terraform modules. All make targets run from modules/aws/. Run make help for an inline summary. For the full deploy setup, refer to the AWS deployment guide.

First-time setup

Fast path once make quickstart and source infra/scripts/setup-env.sh are complete:

Day-2 operations

Preflight checks

Add-ons

Add-ons are controlled by enable_* flags in infra/terraform.tfvars. Set the flags, run make apply, re-run make init-values to copy the matching values files, then run make deploy. Fleet, Insights, and LangSmith Chat with external storage, sandboxes, and SmithDB all create Terraform resources.
enable_agent_builder was removed in chart v16. Setting it to true fails validation at terraform plan, so use enable_fleet instead.

Sizing profiles

Set sizing_profile in terraform.tfvars, then re-run make init-values && make deploy.

Make targets

Setup and secrets

Preflight

Infrastructure

make init, make plan, make apply, and make destroy pass ARGS through to Terraform. For example: make plan ARGS="-target=module.eks", make plan ARGS="-out=tfplan" then make apply ARGS="tfplan", make apply ARGS="-auto-approve", or make init ARGS="-upgrade".

Helm deploy

Fast path

Utilities

Testing

kubectl

AWS CLI

Terraform

Run these from modules/aws/:

Teardown

Teardown permanently deletes LangSmith data. Step 1 deletes the ClickHouse volume, step 4 deletes every trace object in S3, and step 6 deletes the SSM parameters. Those parameters include the API key salt, the JWT secret, and the encryption keys, which must never change. A database restored from the -final RDS snapshot needs them: without the original salt and keys, existing API keys stop working and encrypted data cannot be read. If you keep the snapshot, export the SSM parameters to a secure location before make purge-secrets.
With SmithDB enabled, also empty the SmithDB bucket before make destroy, or set smithdb_s3_force_destroy = true in step 3. With bucket versioning enabled, aws s3 rm leaves old object versions behind; delete them in the S3 console or with aws s3api delete-objects. If make destroy cannot delete a module-created VPC because security groups created outside Terraform are still in it, run make teardown-byo-sg BYO_SECURITY_GROUP_IDS="sg-...", then run make destroy again. The script refuses to run when create_vpc = false. RDS takes a final snapshot named <identifier>-final unless postgres_skip_final_snapshot = true. With SmithDB enabled, the metastore RDS also takes a -final snapshot unless smithdb_metastore_skip_final_snapshot = true. A repeat destroy fails with DBSnapshotAlreadyExists if that snapshot still exists.