PROJECT STUDY
Cloud Platform Kit
Keep the data in Jakarta and the checks in code.
An AWS CDK platform kit for production systems in Jakarta: synthesis fails when a resource would land outside the approved regions, every stack passes cdk-nag and the kit's own policy pack, SLOs alert by burn rate, and deploys need no stored keys.
Explore the build
At a glance
- Industry
- Technology
- Capabilities
- 8
- Technologies
- 14
- Year
- 2026
The challenge
Production systems on AWS need much the same secure foundation, yet teams often rebuild it for each project, and the rules that matter most live in review checklists that are easy to skip.
Indonesian companies also need to show where personal data lives, which security baseline each resource meets and how reliable a service really is.
Where personal data may live is a recurring question under Indonesia's Personal Data Protection Law (UU PDP) and sector rules. A baseline should answer it in code, where every change is checked before anything is deployed.
What we built
Cloud Platform Kit is an AWS CDK v2 app in TypeScript that builds development, staging and production as separate stages of six stacks each, and checks every resource against data residency and security policy each time it is synthesised. A reference service, a platform scorecard, delivery workflows and runbooks come with it.
Network
A VPC across the three Jakarta availability zones with public, private and isolated subnets, NAT gateways sized per environment, an S3 gateway endpoint and six interface endpoints for ECR, Secrets Manager, CloudWatch and X-Ray, flow logs to an encrypted log group, and a default security group with every rule removed
Data
PostgreSQL 17 on RDS in the isolated subnets, encrypted with a customer-managed KMS key, with TLS forced, SCRAM passwords, IAM authentication, automated backups and password rotation every 30 days, plus Multi-AZ and deletion protection in production
Compute
An ECS Fargate service with an AWS Distro for OpenTelemetry collector beside each task, behind an Application Load Balancer that redirects HTTP to HTTPS and drops invalid headers. AWS WAF runs four managed rule groups and a per-address rate limit, tasks scale on CPU and on requests per target, and a deployment circuit breaker and an SLO alarm roll back a failing release
Edge and security
CloudFront serves public static assets from a private S3 bucket through origin access control. Three customer-managed KMS keys, a multi-region CloudTrail trail written to an Object Lock bucket, an image registry with immutable tags and scan on push, a permissions boundary on every role the kit creates and GuardDuty runtime monitoring in staging and production complete the baseline
Observability and SLOs
Burn-rate SLO alarms and their composites derived from each environment's availability target, five operational alarms for the database, tasks, targets and response time, a KMS-encrypted SNS topic and a CloudWatch dashboard
Optional recovery copy
Indonesia has one AWS region, so a copy that survives the loss of that region has to leave the country. The kit keeps it off by default; switched on, it adds a locked AWS Backup vault in a second region that receives a daily copy of the database backups, and synthesis fails until the profile records the reference of an approved transfer decision
Reference service
A TypeScript Hono service with /health reporting the version, /ready, a consent-record API, redacted JSON logs, OpenTelemetry traces and metrics and graceful shutdown, built by a multi-stage Dockerfile that runs as a non-root user. A Compose file defines a local collector, Prometheus, Jaeger and Grafana around it
Scorecard, docs and runbooks
A static React scorecard shows the synthesised resources, policy results, residency, SLO alarms, environment differences and a cost model that computes monthly usage for the owner to price. Architecture diagrams are generated as SVG, and runbooks cover deploy, rollback and restore drills
Network
A VPC across the three Jakarta availability zones with public, private and isolated subnets, NAT gateways sized per environment, an S3 gateway endpoint and six interface endpoints for ECR, Secrets Manager, CloudWatch and X-Ray, flow logs to an encrypted log group, and a default security group with every rule removed
Data
PostgreSQL 17 on RDS in the isolated subnets, encrypted with a customer-managed KMS key, with TLS forced, SCRAM passwords, IAM authentication, automated backups and password rotation every 30 days, plus Multi-AZ and deletion protection in production
Compute
An ECS Fargate service with an AWS Distro for OpenTelemetry collector beside each task, behind an Application Load Balancer that redirects HTTP to HTTPS and drops invalid headers. AWS WAF runs four managed rule groups and a per-address rate limit, tasks scale on CPU and on requests per target, and a deployment circuit breaker and an SLO alarm roll back a failing release
Edge and security
CloudFront serves public static assets from a private S3 bucket through origin access control. Three customer-managed KMS keys, a multi-region CloudTrail trail written to an Object Lock bucket, an image registry with immutable tags and scan on push, a permissions boundary on every role the kit creates and GuardDuty runtime monitoring in staging and production complete the baseline
Observability and SLOs
Burn-rate SLO alarms and their composites derived from each environment's availability target, five operational alarms for the database, tasks, targets and response time, a KMS-encrypted SNS topic and a CloudWatch dashboard
Optional recovery copy
Indonesia has one AWS region, so a copy that survives the loss of that region has to leave the country. The kit keeps it off by default; switched on, it adds a locked AWS Backup vault in a second region that receives a daily copy of the database backups, and synthesis fails until the profile records the reference of an approved transfer decision
Reference service
A TypeScript Hono service with /health reporting the version, /ready, a consent-record API, redacted JSON logs, OpenTelemetry traces and metrics and graceful shutdown, built by a multi-stage Dockerfile that runs as a non-root user. A Compose file defines a local collector, Prometheus, Jaeger and Grafana around it
Scorecard, docs and runbooks
A static React scorecard shows the synthesised resources, policy results, residency, SLO alarms, environment differences and a cost model that computes monthly usage for the owner to price. Architecture diagrams are generated as SVG, and runbooks cover deploy, rollback and restore drills
How it works
Typed profiles first
Development, staging and production are declared in TypeScript and validated with Zod, with the region pinned to Asia Pacific (Jakarta), ap-southeast-3. Production rules refuse a single-AZ database, missing deletion protection, fewer than three NAT gateways, fewer than two tasks or an audit lock that is not in compliance mode.
Checks at synthesis
Every synthesis runs the residency guard, cdk-nag's AwsSolutions pack, the kit's own CPK pack and the CloudFormation schema check. A finding fails synthesis unless an acknowledgment with a written reason covers it, and an acknowledgment that no longer matches a finding fails the build as well.
Offline tests and report
Availability zones come from the profiles, so synthesis needs no AWS account and makes no context lookup. Assertion tests check encryption, Multi-AZ and deletion protection only in production, the WAF association, public buckets, tags and residency, and each synth run writes a Zod-validated platform report and the diagrams that the scorecard reads.
Keyless, gated delivery
GitHub Actions workflows assume AWS roles through OIDC, so no AWS keys are stored. Pull requests get a cdk diff, images are built and scanned with Trivy before any push, and deploys run development, then staging, then production, each job in its own GitHub environment so that production can wait for a reviewer. A local checker holds every workflow to these rules.
Operate by error budget
The SLO library turns each environment's availability target into multi-window burn-rate alarms on the load balancer's error ratio, and only the composite alarms notify. Runbooks cover deploy, rollback and a restore drill that lists the recovery point each failure tier allows by design.
Engineering insights
The kit moves platform rules out of review checklists and into code that runs every time the app is synthesised.
Stack by layer
- Frontend
- React
- TypeScript
- Vite
- Tailwind CSS
- SVG
- Backend
- Node.js
- TypeScript
- Hono
- Zod
- ts-pattern
- OpenTelemetry
- Data
- Amazon RDS for PostgreSQL
- Amazon S3
- AWS Backup
- Infrastructure
- AWS CDK
- cdk-nag
- Amazon VPC
- Amazon ECS on Fargate
- Application Load Balancer
- AWS WAF
- Amazon CloudFront
- AWS KMS
- AWS IAM
- AWS CloudTrail
- Amazon GuardDuty
- Amazon CloudWatch
- Amazon SNS
- AWS Secrets Manager
- Amazon ECR
- AWS Distro for OpenTelemetry
- GitHub Actions
- Docker
- Trivy
- Prometheus
- Grafana
- Jaeger
- Vitest
- Playwright
- Biome
- esbuild
Residency is a build error
The guard is a CDK Aspect at read-only priority that reports through CDK validation errors, which, unlike a cdk-nag finding, cannot be acknowledged. It fails closed for every resource type outside the approved regions, rejects a CloudFront origin that is not a public bucket, and checks backup copies, S3 replication, global table replicas and log subscriptions
Suppressions cannot go stale
AwsSolutions is subclassed so that every rule outcome lands in a ledger. Findings are acknowledged only from one catalogue whose reasons a test holds to at least twelve words, and after synthesis any acknowledgment that no longer matches a finding fails the build. With aws-cdk-lib 2.271.0 and cdk-nag 3.0.2, the production profile synthesises 136 resources with 204 recorded checks: 190 passed, 14 acknowledged and none failing
Alarm thresholds are derived
The library computes burn rates of 14.4, 6 and 1 over a 30-day period from the multi-window method in Google's SRE Workbook; at a 99.9% target that is a 1.44% error ratio on a 43.2 minute budget for the fastest page. It rejects windows CloudWatch cannot evaluate, a composite fires only when both windows of a pair burn, and the short window lets an alert reset soon after the errors stop
Synthesis without an account
Neither the report pipeline nor the CDK CLI performs a lookup, and the tests scrub credential variables and assert that no context is missing. On the development machine (Windows 11, Node.js 24.19) the pipeline synthesised three environments and 18 stacks with 571 recorded checks in about 8 seconds
Telemetry without personal data
Spans keep an allow-list of four route-level attributes, the generated collector configuration deletes client addresses, user agents, URLs, query strings and authorization and cookie headers before export, and the shared logger redacts tokens, keys, email addresses, Indonesian phone numbers and 16-digit numbers such as NIK on every JSON line
Design system
Blueprint is a technical-drawing design language for the engineers and auditors who read the scorecard and the diagrams: slate outlines on paper over a faint grid, one accent kept for compute, and status colours that always travel with a shape.
Colour palette
- Slate
#0f172aText, labels, resource names and every outline except compute - Paper
#f8fafcPage and diagram background under a faint grid - Grid
#cbd5e1Grid lines, table rules and dividers that never carry meaning - Muted
#475569Secondary text such as captions and column headers - Sky
#0284c7Compute only, the service, its tasks and their connectors, plus the keyboard focus ring - Emerald
#059669Passing checks, always drawn with a tick glyph - Amber
#d97706Warnings and acknowledged findings, always drawn with a triangle glyph - Rose
#e11d48Failing checks, always drawn with a cross glyph
Colour
Slate text and outlines on paper, with grid lines that carry no meaning. Sky marks compute and the keyboard focus ring only, and emerald, amber and rose are kept for passing, acknowledged and failing checks, used for strokes and glyphs rather than text. The theme resets Tailwind's default palette, so no colour outside Blueprint can slip in
Typography
Inter for text and JetBrains Mono for resource names, rule IDs, ARNs and numbers compared down a column, both bundled so the page loads no font from a third party, on a 12 to 32 px type scale and a 4 px spacing grid
Shapes and glyphs
Five shapes draw everything: a rounded sky box for compute, a cylinder for data at rest, a square-cornered box for traffic paths, a box with a double rule for control and a circle for actors outside the platform. Each status has its own glyph, a tick, a triangle, a cross or an i, and there are no vendor logos
Components and accessibility
In-house React components on Tailwind CSS v4 tokens that a test keeps equal to the TypeScript token source: an app shell with an environment switch, panels, tiles, chips, outcome counts and filters on native radio inputs. Tests hold text pairs to 4.5:1 and glyph colours to 3:1, and a browser test loads every view at 390 px and fails on horizontal scroll
Where this fits
Teams moving production systems to AWS can start from this baseline instead of rebuilding it for each project, then adapt the profiles to their own accounts and services. Explore our IT consulting and business systems services, or talk to us about your platform.
Inside the project
Views of the platform scorecard, built from the synthesised templates of the shipped profiles, which use synthetic account IDs.
The scorecard overview for production, read from the synthesised templates.View larger The production architecture, drawn by the synth pipeline in the Blueprint shape language.View larger Policy checks: every rule's outcome, and each acknowledged finding with its written reason.View larger Burn-rate alarms derived from the 99.9% target, each matched against the synthesised template.View larger
KEEP EXPLORING
Another problem. A different approach.

Competition Management System
A football competition platform where every competition runs as its own branded instance on its own subdomain, created from one form by a resumable 16-step provisioner.

Store & Workforce Vision
A privacy-aware store operations platform for occupancy, queue and zone events, with configurable alerts, manager review and aggregate reporting.
Let’s connect the dots
Let's put these ideas to work.
Share a process, product, or problem you want to improve. We will work through the possibilities together.