definite CLI, and tear it down cleanly when you’re done.
By default, the install uses Definite-brokered DNS and TLS. Definite provides a URL like https://<slug>.onprem.definite.app during setup, so you do not need to configure Route 53 or any other customer DNS before the first successful install.
End to end: about 30 to 40 minutes, most of which is terraform apply waiting on EKS and RDS.
What gets created
| Resource | Notes |
|---|---|
| VPC | Private subnets for nodes and the database, public subnets for NAT and load balancers |
| EKS cluster | Kubernetes 1.30 (configurable), managed node group, OIDC provider enabled for IRSA |
| RDS Postgres 15 | Private (not publicly accessible), reachable only from the cluster security group |
| S3 bucket | Lakehouse data; public access blocked, encryption and versioning on |
| IAM IRSA roles | Least-privilege roles for the lakehouse and for Fi’s Bedrock access |
| IAM user + access key | Static-credential fallback for the lakehouse (see IRSA vs access key) |
gp3 StorageClass | Cluster-default StorageClass the lakehouse PVC needs |
Every name, instance size, CIDR, and count is a Terraform variable with a sane default. Override only what you need to in
terraform.tfvars.Prerequisites
AWS account access
AWS credentials in your shell with permission to create VPC, EKS, RDS, S3, and IAM resources. The Terraform provider reads the standard AWS credential chain (env vars, shared config, SSO, instance profile). No secrets live in the Terraform code.
Local tooling
Install the following on the machine you’ll run
terraform and definite from:| Tool | Version | Check |
|---|---|---|
terraform | 1.5+ | terraform version |
aws CLI | recent | aws --version |
kubectl | 1.28+ | kubectl version --client |
helm | 3.12+ | helm version |
LLM access
Decide which LLM provider Fi will use. Bedrock is the most common choice for AWS deployments; this guide uses it as the default. Anthropic, Vertex, and Azure OpenAI are also supported. If you go with Bedrock, make sure you’ve requested model access for Claude in the target region.
Definite broker access
In the default brokered flow, you do not need a manual Definite setup token or license key.
definite init uses your active AWS credentials to create a short-lived, signed STS GetCallerIdentity proof, exchanges that proof with Definite for a setup token, then receives the brokered DNS name and license. If your organization requires a manual/customer-owned mode, contact hello@definite.app.Phase 1: Provision AWS infrastructure with Terraform
Download the AWS Terraform module from the public release bucket and unpack it:latest with a version tag (for example v0.0.11).
1. Configure inputs
Copy the example tfvars file and edit it:terraform.tfvars is just two lines:
README.md included in the module for the full list of variables.
2. Init, plan, apply
terraform apply takes 20 to 25 minutes (mostly EKS and RDS). When it finishes, every value you need is in terraform output.
3. Read the outputs
Inspect the non-sensitive outputs:-raw:
config.yaml are summarized here:
| Terraform output | Goes into |
|---|---|
cluster_name | aws eks update-kubeconfig --name ... |
region | object_store.region, llm.region |
postgres_url (sensitive) | postgres.url |
rds_password (sensitive) | POSTGRES_PASSWORD env var |
lakehouse_bucket_name | object_store.bucket |
lakehouse_prefix | lakehouse.prefix |
lakehouse_s3_access_key_id | S3_ACCESS_KEY_ID env var |
lakehouse_s3_secret_access_key (sensitive) | S3_SECRET_ACCESS_KEY env var |
bedrock_irsa_role_arn | Post-install kubectl annotate on the definite ServiceAccount (see Bedrock IRSA) |
config.yaml snippet:
IRSA vs access key
The module emits both an IRSA role and an IAM user + access key for lakehouse S3 access. Both share one identical least-privilege policy.| Option | When to use |
|---|---|
Access key (lakehouse_s3_access_key_id, lakehouse_s3_secret_access_key) | Use this today. The lakehouse reads S3 through DuckDB’s httpfs extension, which speaks the S3 API with static credentials, not the AWS SDK, so it can’t assume an IRSA role yet. |
IRSA role (lakehouse_irsa_role_arn) | The end state. Once the lakehouse gains SDK-based S3 support, annotate the ServiceAccount with this role’s ARN and delete the IAM user. No infra change needed. |
Phase 2: Install Definite with the definite CLI
1. Install the CLI
definite on your PATH (default: $HOME/.local/bin). Binaries are published for macOS and Linux (arm64 and x86_64), and are uploaded by the release workflow using short-lived Workload Identity Federation credentials (no long-lived keys).
To pin a version, set DEFINITE_VERSION before piping to sh:
2. Point kubectl at the new cluster
Ready state.
3. Bootstrap cluster prerequisites
definite bootstrap installs the cluster-level pieces that definite init assumes are already present:
| Prerequisite | What it provides |
|---|---|
| Ingress controller | HTTP/S routing for the deployment’s Ingress resource |
| Definite-brokered DNS/TLS readiness | The default setup path uses the Definite setup broker and the returned *.onprem.definite.app URL |
| agent-sandbox CRDs | Custom resources the Fi runtime uses to dispatch per-run sandboxes |
--dry-run prints what it would install without touching the cluster. The command is idempotent; safe to re-run.
4. Let definite init request Definite-brokered DNS
The ingress controller provisions an AWS Network Load Balancer. Wait for it to land, then grab its hostname:
<random-id>.elb.<your-region>.amazonaws.com.
For the default path, do not stop here to ask the customer to create a CNAME. definite init calls the Definite setup broker for you, using the ingress target above. The backend contract is POST /onprem/v1/setup-sessions, but users and agents should not run a direct curl by default.
Customer-owned DNS is supported as an advanced/custom production option after the system is healthy. If the customer explicitly selected that mode, create a Route 53 or external CNAME from the customer hostname to
$LB_HOST and use the released CLI’s customer-owned mode. The expected flag shape is --dns-mode customer-owned --hostname <hostname>. Private/internal production deployments may also need a customer certificate or private CA. Do not use nip.io, cert-manager, or Let’s Encrypt as the default first-run path.5. Build config.yaml
Start from the EKS example config: minimal-eks.yaml. The shape:
6. Export secrets
config.yaml references env vars for every secret. Export them from Terraform outputs:
LICENSE_KEY or DEFINITE_ONPREM_SETUP_TOKEN for the default brokered flow. definite init obtains the setup token and license from Definite after proving control of the active AWS credentials.
7. Preflight with definite doctor
doctor runs a battery of preflight checks: it connects to Postgres and runs SELECT version(), validates the Kubernetes context, checks object-store config shape, and (for Anthropic) pings the LLM API. Fix anything it flags before moving on.
8. Deploy with definite init
init re-runs preflight, renders the bundled Helm chart with your values, and runs helm upgrade --install. It waits for pods to reach Ready by default. Useful flags:
| Flag | Purpose |
|---|---|
--dry-run | Render values, don’t apply |
--wait=false | Return as soon as Helm finishes; don’t wait for pods |
--skip-preflight | Skip doctor. Use only when the per-cloud troubleshooting path says a private-network check is expected to fail from your laptop |
9. Set the initial admin user
The chart does not auto-create an initial admin. Afterdefinite init returns successfully and the pods are Ready, set INITIAL_ADMIN_EMAIL and INITIAL_ADMIN_PASSWORD on the api Deployment; the api creates the admin record on its next start.
https://<brokered-hostname> in a browser and log in with the admin email and password from above.
Want Google SSO instead of local auth? See the Google SSO guide. You’ll add an
auth.oidc block to your config.yaml and re-run definite upgrade — no need to redo the install.Bedrock IRSA
If you’re using Bedrock as the LLM provider (the default for AWS), Fi authenticates to Bedrock via IRSA: the pod’sServiceAccount must carry an eks.amazonaws.com/role-arn annotation pointing at the IRSA role Terraform created.
Confirm the annotation after definite init, and apply it if it is missing:
definite upgrade preserves the annotation (Helm’s three-way merge leaves unmanaged fields alone), but re-apply it if anyone does a helm uninstall + reinstall.
Day-2 operations
The same CLI handles upgrades, logs, license, and lakehouse maintenance. A few of the most common commands:Phase 3: Teardown
First, delete the orphaned NLB so Terraform can clean up the VPC:| Variable | Default | Effect |
|---|---|---|
rds_deletion_protection | false (set to true for production) | When true, RDS refuses to be deleted; flip it to false first |
lakehouse_force_destroy | false | Non-empty buckets won’t be deleted; flip it to true if you really mean to remove the bucket and its contents |
Troubleshooting
| Symptom | Likely cause | Fix |
|---|---|---|
terraform apply hangs on EKS | Cluster takes 15-20 min to provision; this is normal | Wait |
Lakehouse pod stuck Pending on PVC | No default StorageClass | Confirm gp3 StorageClass is present: kubectl get storageclass. The module creates it by default; set create_gp3_storage_class = true if you disabled it |
definite doctor Postgres check fails with “connect timeout” or “could not reach postgres” | RDS is not publicly accessible (no public endpoint); the check is running from a laptop outside the VPC | Expected for private RDS from a laptop. The in-cluster API pods reach RDS over the VPC’s private network. To fully validate before install, run definite doctor from a bastion host or an in-cluster pod. Use --skip-preflight only for this known private-network check, not for object-store, Kubernetes, license, or LLM failures |
| LB hostname never appears | Ingress controller isn’t running, or the AWS Load Balancer Controller fights with ingress-nginx | kubectl get pods -n ingress-nginx; if you installed both controllers, pick one |
| Brokered URL never becomes ready | The setup broker has not pointed *.onprem.definite.app at the NLB yet, or the NLB hostname is wrong | Re-run definite init --config config.yaml --dns-mode definite-brokered, confirm $LB_HOST matches the ingress Service, and retry before debugging the app |
| Customer-owned hostname does not work | Customer-owned DNS was selected, but the CNAME does not point at the NLB or the custom cert/private CA path is incomplete | Fix the customer DNS/cert path or switch back to the default Definite-brokered DNS mode for first install |
| Fi can’t reach Bedrock | The definite ServiceAccount isn’t annotated with the Bedrock IRSA role, or the model isn’t enabled in the region | Annotate the SA with the Bedrock IRSA role ARN (see Bedrock IRSA), and request model access in the AWS Bedrock console |
| You can log in, but every product page or API call returns HTTP 403 | The deployment is unlicensed: config.yaml has no license block, or the key is wrong | Add a license block with your Definite-issued key and run definite upgrade --config config.yaml. definite init prints an UNLICENSED warning when the block is missing |
Next steps
- Connect a data source to start ingesting data.
- Set up the MCP server so Claude, Cursor, or Windsurf can query your deployment.
- For deeper config (custom container registry, sandbox network policies, OIDC tuning), see the config reference in Definite’s built-in docs.

