Deployment Architectures
KAWA can be deployed in several ways. This page shows the reference architecture for each option, illustrated with a diagram. For a side-by-side comparison of what each cloud provider supports, see Deployment Options.
1. AWS (EC2 / ECS)
A single-host Docker Compose deployment: KAWA runs as one OCI artifact on a single EC2 / ECS host. This is one of several supported options — for the Kubernetes (EKS) topology, see Deployment Options. The same pinned artifact is promoted unchanged across environments, and all network links are TLS-encrypted in transit.
Model
Single-host Docker Compose deployment — one OCI artifact on a single EC2 / ECS host.
Artifact
One OCI release bundling four images: KAWA Java (JDK 21 — core backend and platform APIs), KAWA AI (Python — inference via Amazon Bedrock, isolated in a filesystem sandbox), KAWA Workflow (BPMN 2.0 workflow engine), KAWA Python (runs user Python code, packages from PyPI).
Host
m7a.2xlarge — 8 vCPU, 32 GB RAM, AMD64 / x86_64, standard Linux. Runtime: Docker Compose (OCI).
Data & storage
PostgreSQL — back-office and entity store; Amazon S3 — user files, one bucket per environment; SQL warehouse — one engine per deployment: ClickHouse, Trino, Snowflake or Databricks.
AI
Amazon Bedrock — model inference.
Authentication
OIDC / OAuth2 — Auth0 or any OIDC-compliant IdP.
Integrations & email
SMTP — outbound email; Jira Cloud — issue sync; Bitbucket — source repositories; external / internal REST APIs.
Environments
Same pinned artifact promoted DEV → STAGING → PROD. Production runs active with an optional passive warm-standby host — see Disaster Recovery Architecture. Each environment has its own S3 bucket.
1.1 Deploy or upgrade
Deploy or upgrade an environment with a single command:
Replace <registry> and <tag> with the values provided by KAWA during onboarding. To upgrade, pull a new tag — there is no rebuild. The same pinned artifact moves unchanged from non-production to production.
2. AWS single appliance
One EC2 instance runs KAWA as a single docker compose package, with all its state on a dedicated EBS volume that survives the instance and is snapshotted every few hours. Secrets come from Secrets Manager at boot, users come in through an internal load balancer, and the instance needs no internet access. It is the simplest production topology, and the one to pick when a single team operates KAWA inside its own network. Full description, prerequisites, sizing and disaster recovery: Single Appliance Deployment.
Model
One EC2 instance running the KAWA Docker Compose package. The instance is disposable: replaced, not repaired.
Host
AMD64, any Linux distribution with docker and docker compose v2. Sized to the data KAWA holds (RAM ≈ compressed data + 20 GB), e.g. r7a.4xlarge.
Data & storage
One encrypted EBS data volume mounted on /data, holding all KAWA state; EBS snapshots every N hours through Data Lifecycle Manager.
Secrets
AWS Secrets Manager — the KAWA environment, fetched at boot by the instance role through a VPC endpoint.
Network
Internal ALB with TLS in front of port 8080. Images from an internal container registry, Python packages from an internal PyPI mirror; no internet access required.
Authentication
KAWA's own login, or OIDC / OAuth2 with any OIDC-compliant IdP (optional).
SMTP relay for alerting and notifications (optional).
Recovery
Hardware fault: EC2 auto-recovery. Broken instance: a new one on the same volume. Lost volume or zone: restore the latest snapshot. Region: snapshot copies in a second region.
Last updated
Was this helpful?

