AWS Install (your VPC)
This guide installs CHANGENTS.AI inside your own AWS account. Everything runs in private subnets of a VPC created for it, and your data never leaves your account. One terraform apply builds the network and the cluster, creates the encryption key and secrets, and installs the platform.
The Terraform is in terraform/aws of the source package. It installs the same Helm chart as the Kubernetes Install, with the values-aws.yaml profile.
Status. The Terraform passes
terraform validate, and the chart renders and passes schema checks with the AWS profile. It has not yet been applied to a live AWS account. Run your first install in a sandbox account and tell us what you find.
What gets built
| Layer | What | Notes |
|---|---|---|
| Network | VPC across 3 availability zones with private, public and database subnets; NAT gateways (optional); VPC flow logs | Nodes, pods and datastores sit in private subnets only |
| Private AWS access | VPC endpoints for S3, ECR, STS, CloudWatch Logs, Secrets Manager, KMS, EC2, ELB, EFS and Auto Scaling (plus Bedrock if enabled) | Images, secrets and keys never cross the internet |
| Cluster | EKS with a CPU node group, and optionally a GPU node group for the model server | API endpoint private, or public only from admin_cidrs; IMDSv2 only; audit logs on |
| Encryption | One customer-managed KMS key with yearly rotation | Covers Kubernetes Secrets, node and data volumes, EFS, Secrets Manager, DocumentDB and ElastiCache |
| Secrets | Generated platform secrets stored in Secrets Manager, synced into the cluster by the External Secrets Operator | Rotate a value in Secrets Manager and the cluster picks it up within an hour |
| Pod permissions | One IAM role per add-on (IRSA). The platform's own role has no permissions unless you enable Bedrock | No static AWS keys anywhere |
| Storage | Encrypted gp3 volumes (Retain) for MongoDB, Redis and models; encrypted EFS with AWS Backup for uploads shared by backend replicas | |
| Traffic | Application Load Balancer from the AWS Load Balancer Controller, TLS 1.2/1.3 with your ACM certificate, internal by default | 310 s idle timeout for long agent runs |
| Isolation | Network policies enforced by the VPC CNI | Pods accept traffic only from each other and the load balancer |
| Datastores | MongoDB and Redis in the cluster by default. Optional: Amazon DocumentDB, MongoDB Atlas over PrivateLink, or ElastiCache (TLS + auth token) | DocumentDB has not yet been verified with the platform; test it before production |
Before you start
You need:
- An AWS account and credentials able to create VPCs, EKS clusters, IAM roles and KMS keys.
- Terraform 1.6 or later and the AWS CLI.
- An ACM certificate for your hostname, in the same region.
- Your licence key, and the ghcr.io pull token issued with it. Alternatively, mirror the images into ECR: see Deployment Package.
Install
# customer.tfvars — keep it out of version control
region = "ap-southeast-1"
name = "changents-prod"
admin_cidrs = ["203.0.113.0/24"] # your VPN egress; [] for private-only
hostname = "changents.corp.example"
acm_certificate_arn = "arn:aws:acm:ap-southeast-1:123456789012:certificate/…"
license_key = "CHNGT2.…"
ghcr_pull_token = "…"
gpu_node_count = 1 # recommended; 0 runs models on CPU
smtp = { host = "smtp.corp.example", port = 587, user = "…", pass = "…", from = "changents@corp.example" }cd terraform/aws
terraform init
terraform apply -var-file=customer.tfvarsThen point your hostname at the load balancer. The load_balancer_command output prints its DNS name; use a CNAME record or a Route 53 alias.
Terraform state holds the generated secrets. Keep it in an encrypted S3 backend with locking; versions.tf has an example.
Choices
| Variable | Default | Change it when |
|---|---|---|
enable_nat_gateway | true | You want no internet path at all. Mirror the images into ECR (image_registry) and set air_gapped = true |
internet_facing | false | Users reach the platform from the internet rather than your network |
mongodb_mode | in_cluster | You prefer a managed database: documentdb, or external with external_mongodb_uri (Atlas over PrivateLink) |
redis_mode | in_cluster | You prefer ElastiCache |
enable_bedrock | false | You want agents to use Amazon Bedrock models through IAM |
gpu_node_count | 0 | Always, for production. The CPU model is slow and less accurate (see Models & GPU) |
After install
- Check the platform: run
kubectl -n changents get pods,ingress, open the hostname and create the first account. - Rotate a secret: change it in Secrets Manager (
secrets_manager_entryoutput). The platform picks it up within an hour, or straight away if you restart the pods. - Upgrade: set
platform_versionand runterraform apply. Releases are signed; see Verifying a Release.