Skip to content
Back to the app

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 ​

LayerWhatNotes
NetworkVPC across 3 availability zones with private, public and database subnets; NAT gateways (optional); VPC flow logsNodes, pods and datastores sit in private subnets only
Private AWS accessVPC 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
ClusterEKS with a CPU node group, and optionally a GPU node group for the model serverAPI endpoint private, or public only from admin_cidrs; IMDSv2 only; audit logs on
EncryptionOne customer-managed KMS key with yearly rotationCovers Kubernetes Secrets, node and data volumes, EFS, Secrets Manager, DocumentDB and ElastiCache
SecretsGenerated platform secrets stored in Secrets Manager, synced into the cluster by the External Secrets OperatorRotate a value in Secrets Manager and the cluster picks it up within an hour
Pod permissionsOne IAM role per add-on (IRSA). The platform's own role has no permissions unless you enable BedrockNo static AWS keys anywhere
StorageEncrypted gp3 volumes (Retain) for MongoDB, Redis and models; encrypted EFS with AWS Backup for uploads shared by backend replicas
TrafficApplication Load Balancer from the AWS Load Balancer Controller, TLS 1.2/1.3 with your ACM certificate, internal by default310 s idle timeout for long agent runs
IsolationNetwork policies enforced by the VPC CNIPods accept traffic only from each other and the load balancer
DatastoresMongoDB 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 ​

hcl
# 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" }
bash
cd terraform/aws
terraform init
terraform apply -var-file=customer.tfvars

Then 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 ​

VariableDefaultChange it when
enable_nat_gatewaytrueYou want no internet path at all. Mirror the images into ECR (image_registry) and set air_gapped = true
internet_facingfalseUsers reach the platform from the internet rather than your network
mongodb_modein_clusterYou prefer a managed database: documentdb, or external with external_mongodb_uri (Atlas over PrivateLink)
redis_modein_clusterYou prefer ElastiCache
enable_bedrockfalseYou want agents to use Amazon Bedrock models through IAM
gpu_node_count0Always, 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_entry output). The platform picks it up within an hour, or straight away if you restart the pods.
  • Upgrade: set platform_version and run terraform apply. Releases are signed; see Verifying a Release.

Served from this deployment. No page view leaves it.