Skip to content

Deployment

The assistant runs in your AWS account on Fargate, with Aurora Postgres, S3, SQS and Bedrock, all created by one Terraform stack from one variables file. We never operate it and never see your data. You receive the container images and the versioned Terraform module, with the sandbox bundle, from us.

What gets created

Piece Purpose
CloudFront and a load balancer The public address (https). Only /api and the embed pages are reachable
Fargate services The API, the agent, the embed host and the document indexer (plus an optional usage reporter)
Aurora Serverless v2 Chats, history, document passages
S3 and SQS Your knowledge folder and attachments; indexing events
Bedrock The chat model and embeddings, in your account
Secrets Manager Database credentials and the license key

No access keys exist anywhere: each service has its own role with only what it needs.

You need

Terraform 1.10 or later, the AWS CLI, Docker, Bedrock access to a chat model and an embedding model in your region (enable them in the Bedrock console), and the license key we issued.

Steps

  1. Copy the example variables file from the module to my.tfvars and fill it in (below).
  2. Run the module's deploy.sh my.tfvars. It creates the state bucket if needed, then the stack, the images and the database in the right order. Re-running is safe.
  3. The output prints the public URL. Point your embedding at it.
  4. To remove everything, run destroy.sh my.tfvars. It checks that nothing billable is left. A stack with destroyable = false refuses, so a production database is never dropped by accident.

Main variables

Variable What
name, region Stack name and AWS region
bedrock_model, embedding_model Models to use (your account must have access)
identity_url Your identity endpoint, https
license_key Your license (given as TF_VAR_license_key)
allowed_cidrs Who may reach the load balancer. No default: opening it to everyone is your decision
public_hostname, public_certificate_arn Your own domain instead of CloudFront's address (certificate in us-east-1)
tools_config_json, tenant_settings_config_json, hooks_config_json, retention_config_json The configuration files, as JSON: Tools, Knowledge, Security
kms_enabled One customer-managed key for all data. Choose it at the first apply
nat_gateway Run tasks in private subnets (adds a NAT gateway to the AWS bill)
admin_roles Roles allowed to read document status and run privacy requests
budget_usd, budget_email Monthly budget alerts

Sizing and cost

The stack has fixed AWS costs while it exists (two load balancers, Fargate tasks, the database, public addresses), plus Bedrock per token. Your exact figure depends on region and settings: use the AWS pricing calculator and the budget_usd alert. Aurora scales between aurora_min_acu and aurora_max_acu. A budget alerts you; it never stops anything.

Upgrade

Set the new image_tag and run deploy.sh again. The database migration runs as a task before the services restart. Take a database snapshot first for a production stack.

License

Your deployment runs on a key we issue. Before it ends, everything works and logs warn from 30 days out. For 14 days after, it works and warns daily. After that, new questions are refused (403, license_expired) while chats, history and documents stay readable. Renew by setting the new key and applying; nothing else changes.