Kingfisher — a big-data governance and development platform deployed into the customer's own AWS account (single account × multiple regions)
What Kingfisher is: a big-data platform deployed with the AWS CDK into the customer's own AWS account. It puts data integration, data development, scheduling and operations, data governance, AI-assisted analytics (natural-language questions over data) and cost governance into one Chinese / English console, and everything underneath is a managed AWS service (Redshift Serverless · S3 Tables · Glue · EMR Serverless · MWAA Serverless · DMS · Managed Flink · Bedrock / AgentCore · OpenMetadata).
The problem it solves: data from several countries or jurisdictions must stay in its own region, yet the operations team wants one platform. Kingfisher does this with "one home region hosting the control plane, N execution regions each hosting a complete data plane": switch the "execution scope" in the top bar and you are working in another region, while data, schedules, logs and audit records never leave that region.
| At a glance | |
|---|---|
| Data Integration | JDBC (MySQL / PostgreSQL / Oracle / SQL Server) · S3 · DynamoDB · Kinesis · MSK data sources; Glue batch sync into S3 Tables / Redshift; DMS / Zero-ETL / Flink CDC real-time sync |
| Data Development | Glue PySpark / Redshift SQL / EMR Serverless Spark batch jobs; visual DAG orchestration published to each region's own MWAA Serverless; Redshift / Athena direct query; Flink SQL stream compute |
| Scheduling & Ops | Task monitor · scheduling configuration · multi-region consistency dashboard · backfill center · alerting and SLA baselines · FinOps cost governance (reconciled per region) · ops dashboard · incident knowledge base · AI run diagnosis |
| Data Governance | Catalog · table- / column-level lineage · impact analysis · classification and masking · sensitive-data scan · quality rules · scheduled governance tasks · governance health score · data modeling (layers / data domains / standards / code tables / dimensions and facts / metrics) · OpenMetadata |
| Smart Analytics | Natural-language questions with GenBI (an AgentCore agent that really queries the region's warehouse, masks automatically by classification, and keeps session cards that can refresh on a schedule) · Skills · observability dashboard · report builder · requirements workbench · Copilot Plan Center (creates objects, never runs them) |
| System | Workspace RBAC · execution environments (add a region with a page wizard) · user management · audit log · system settings (the platform's AI model can be switched at runtime: Claude Opus / GPT / GLM / Kimi) |
Where to go next
- 📖 User guide (from first login to proficiency):
docs/user-guide/README.md— a 30-minute quick start, core concepts, three role paths (administrator / data engineer / analyst), ten end-to-end scenarios, rule / configuration / API references, FAQ and glossary. First time here? Start with01-quick-start.md. Every step was run on a two-region demo deployment and the wording follows the console.- 📸 Feature tour:
docs/features.md— screenshots and a description of every feature, page by page following the menu.- 📚 Module overview:
docs/modules.md— pages / APIs / code / AWS dependencies of every module, seven menu groups module by module; components, core concepts and code layout indocs/architecture.md.- 🤖 Taking over this project with an AI tool? Have it read
AGENTS.mdfirst — the project index (overview / deployment relationships / documentation map / red lines). Codex readsAGENTS.mdnatively; Claude Code, Kiro, Cursor and other tools load it as the project rules file.
The user guide lives in docs/user-guide/ (26 documents). It is written for people who operate the console, not for people who read the code: every step is "which page → what to click → what to enter → what you should see", the scenarios share one demo dataset, and each one can be reproduced step by step on a demo installation. Pick your row:
| You are… | Read first | Then |
|---|---|---|
| New to the platform | 01-quick-start.md (30 minutes: sign in and change the password → the top bar → create a data source → sync to S3 Tables → query the rows in Athena → ask one question → task monitor) |
02-concepts.md core concepts · 33-glossary.md glossary |
| Platform administrator / operations | 05-plan-deployment.md planning → 06-deployment.md deployment → 10-guide-admin.md everything to do after go-live · 13-identity-management.md identity management |
22 multi-region data residency · 27 operations and alerting · 28 FinOps · 29 workspaces and permissions · 41 upgrade and decommissioning |
| Data engineer | 11-guide-data-engineer.md (data sources → sync → three kinds of batch jobs → orchestration → scheduling / publishing → backfill → monitoring → running in several regions) |
20 from detail tables to a daily report · 21 detail / aggregate bucket layering · 23 real-time pipeline · 25 governance loop · 26 modeling → metrics → reports |
| Data analyst | 12-guide-analyst.md (Ask-Your-Data · the generated SQL · cards · skills · business definitions · report builder · requests · read-only queries) |
24 handing Ask-Your-Data to the business |
| Looking up a rule / a setting / an API | 30-reference-rules.md rules and rejection messages · 31-reference-config.md settings · 40-api-reference.md API reference |
32-faq.md FAQ · 04-architecture.md architecture (with the Well-Architected mapping) |
The full document map, the reading paths and how the guide works together with the in-console ❓ help are in docs/user-guide/README.md.
- Entry chain: CloudFront is the only public entry point → WAF → ALB (accepts the CloudFront prefix list only) → Next.js full stack on ECS Fargate (pages + API acting as the BFF); Cognito validates the ID token of every
/api/*call. - Control plane (home region, one per platform): Cognito · 72 DynamoDB control tables · Secrets Manager · KMS · OpenMetadata (ECS + RDS MySQL + OpenSearch) · Bedrock + three AgentCore agents (ask-your-data / network advisor / parameter advisor) · CodeBuild as the execution-environment deployment broker · CloudWatch / CloudTrail · AWS DevOps Agent.
- Data plane (one per region,
tgt_*): a VPC with zero internet egress (interface endpoints only) · S3 data lake + S3 Tables (Iceberg) · Glue · EMR Serverless · Athena · Redshift Serverless · MWAA Serverless (autonomous in-region scheduling) · DMS · Managed Flink · MSK · a per-region execution role (locked to the region withaws:RequestedRegion). - Two cross-region channels, zero cross-region data: control plane → data plane carries only definitions / deployments / health probes; data plane → control plane carries only run metadata (over private cross-region VPC peering). The platform never replicates data across regions.
- Figures show components, never versions: the supported versions of every runtime / AWS service engine / data-source driver are maintained in one place,
docs/supported-versions.md.
| Mechanism | In one sentence |
|---|---|
| Execution scope is a first-class citizen | Three levels in the top bar: workspace → environment → execution scope; read APIs honour only the URL ?scope=, and the server never falls back (invalid 400 · unknown 404 · not visible 403 · not ready 409) |
| The target must be explicit | Every object / every run carries a targetId; an entry point without a target is a 400, never a silent default to the home region; credentials are obtained only through the target |
| No cross-region reads | A source and a task in different regions ⇒ permanent 409; each region's execution role is region-locked; execution VPCs have zero egress |
| Autonomous scheduling per region | One MWAA Serverless per region; DAGs / triggers / logs all stay in the region; only run metadata is written back to the home region |
| One principle | No second system for non-home regions: one AgentCore, one OpenMetadata, one set of Cognito / DynamoDB / approvals / audit |
Components, request chain, key flow sequences and data flow: docs/architecture.md (with the flow / sequence diagrams);
design overview: docs/design/multi-region-execution.md; full contracts: specification · design · interaction design; figure index: docs/diagrams/README.md.
Every page has an "execution scope" in the top bar: see all regions, or only one region; lists, runs, costs and catalogs are filtered by the selected region,
and run buttons repeat "which region this runs in". Each cell below is one screenshot; the complete page-by-page description is in docs/features.md.
The AI Hub Copilot Plan Center (a guardrail that creates but never executes), Backfill Center, Alerting Center and SLA baselines, Report Builder, Requirements Workbench, Business Glossary and Rules, Incident Knowledge Base, Governance Center (OpenMetadata) and more are in the feature tour. Every page has a ❓ "How to use this page" panel in the top-right corner, and the first visit starts an interactive tour.
The complete procedure and acceptance criteria are in docs/deployment.md; only the skeleton is listed here.
Deployment machine tools: git · Docker + buildx · Node 20+ · AWS CLI v2 · python3 · zip · curl · 🔴 Maven + JDK 17
(without mvn the deployment still exits 0, but the whole "Stream Compute" capability is unusable).
# 0) Get the release — must be a git clone (not a ZIP export without .git); a fresh clone must install dependencies first
git clone --branch <release-tag> <repository-url> && cd sample-kingfisher
(cd infra && npm ci) && (cd platform && npm ci)
# 1) Account pre-flight (❌ do not start before fixing; the two ignorable ❌ are listed in the guide, section 2) — the third argument is the planned execution region
./scripts/01-preflight-account.sh <profile> <home-region> <execution-region>
# 2) Deploy the home region (one command, about 60–90 minutes) — guide section 3; BGP_DEPLOY_MODE must be given explicitly (production = no sample data, admin user only)
# To pre-authorise several execution regions at once: prefix EXEC_REGION_CANDIDATES=<region-1,region-2,...> (or all-enabled)
BGP_DEPLOY_MODE=production ./scripts/deploy-all.sh <profile> <home-region>
# 3) Post-deploy truth check (exit 0 is not enough; run it before changing the admin password) — guide section 4
./scripts/02-postdeploy-truth.sh <profile> <home-region>
# 4) For every additional execution region — guide section 5: in the console, System → Execution Environments → New: pick the region → Start deployment → "Detect initialization" → "Enable"
# If the region was not pre-authorised, authorise it once after the build succeeds: BGP_DEPLOY_MODE=production ./scripts/redeploy-platform.sh <profile> <home-region>Key points:
- The customer chooses the home region and it never changes afterwards; it must offer Bedrock (the factory default is Claude Opus 4.5; the deployment script walks a candidate chain with real calls and picks the first available model, or you specify
BEDROCK_MODEL_ID=<id>; after go-live it can be hot-switched under "System Settings → AI Model"), Redshift Serverless, S3 Tables, AgentCore and MWAA Serverless. Organisation SCPs must not blockus-east-1(the WAF for CloudFront is created there). - 🔴 Multi-region production cannot "import an existing VPC"; one region allows exactly one execution environment, and the component set cannot be trimmed.
- Always pass
--profileexplicitly to AWS; never runcdk deployby hand (the deployment scripts handle wiring, the mode, the IAM simulation gate and the agent images). - Upgrading to a new version, rolling back and retiring an execution region: deployment guide section 7ter "Upgrading", section 7ter.2 "Rollback" and section 7bis "Retiring an execution region"; read the upgrade notes of that version in
CHANGELOG.md.
| I want to… | Read this |
|---|---|
| 📖 Learn the platform from first login to proficiency (26 documents: quick start · core concepts · administrator / data engineer / analyst paths · ten end-to-end scenarios · rule / configuration / API references · FAQ · glossary; also section 0 above) | docs/user-guide/README.md |
| See what every feature looks like and how to use it (screenshots page by page) | docs/features.md |
| Know what every module does today (pages / APIs / core code / AWS dependencies / mechanisms / boundaries / where the design note went) | docs/modules.md |
| Current architecture: components / request flow / data flow / stack list | docs/architecture.md · figures docs/diagrams/README.md |
| 🔴 Deploy to production in the customer's account / add an execution region / upgrade / roll back / known boundaries | docs/deployment.md (the production deployment guide; adding a region is section 5) · step-by-step record of adding a region in production docs/adding-a-region.md |
| Pre-flight for another account / restricted accounts / resuming after a failed step / troubleshooting | docs/operations.md |
| What the platform costs per month | docs/cost-model.md |
| Technical deep dive into GenBI / AgentCore / observability (home-region internals, written in the single-region stage) | docs/deep-dive.md · docs/deep-dive-brief.md |
| Which versions are supported (Node / Next.js / CDK · Glue / EMR / Flink / DMS / OpenMetadata / MySQL / OpenSearch · data-source drivers · JDK / Maven · browsers · version policy) | docs/supported-versions.md (figures never carry versions; this file is the single source of truth) |
| Security scanning conclusions and accepted findings | docs/security.md (section 6, secure development) |
| Multi-region execution: overview of concepts, architecture, interfaces, key flows and acceptance (entry point, with the figures) | docs/design/multi-region-execution.md |
| Multi-region execution: the full specification (table design, API contract, key-mechanism pseudocode, change list, decisions) | docs/design/multi-region-execution-spec.md |
| Multi-region execution: the full design document (requirements, architecture D1–D8, lifecycle, IAM and network, acceptance, decision record, correction ledger) | docs/design/multi-region-execution-design.md |
| Multi-region execution: the full interaction design (nine scenarios, safety mechanisms, execution-scope rulings, friendliness design) | docs/design/multi-region-execution-interaction.md |
| Design documents of every module (index with status, one line per module) | docs/design/README.md |
| 🤖 Hand the project to an AI tool (Claude Code / Kiro / Codex …) | AGENTS.md |
| Release history | CHANGELOG.md |
Languages. Documentation is written in English. Source comments, test titles and the console output of the deployment scripts are written in Chinese, the working language of the engineering team. The console ships complete Chinese and English locales: the language is suggested from the visitor's location and can be switched by the user at any time.
| Path | Contents |
|---|---|
platform/ |
The platform application: Next.js 15 (App Router, output: standalone) + React 19 + antd 6 + TypeScript; pages src/app/<route>/page.tsx (40 routes), APIs src/app/api/<group>/…/route.ts (54 groups / 318 files), business libraries src/lib/, components src/components/; unit tests with vitest |
infra/ |
AWS CDK v2 (TypeScript): 23 control-plane stacks lib/*.ts (entry bin/app.ts) + execution-environment stack group lib/exec-env/ + execution-environment deployment buildspec + IAM call manifest iam/ + Lambda (lambda/) + three AgentCore agent containers (agent/) |
scripts/ |
Deployment and operations scripts (01-preflight-account.sh pre-flight · deploy-all.sh first install · 02-postdeploy-truth.sh truth check · redeploy-platform.sh upgrade / authorise a new region · redeploy-agents.sh refresh agents · cut-release.sh cut a release) and the offline gates |
flink-sql-runner*/, flink-connector-modules/ |
Managed Flink 1.20 SQL runners (generic / + S3 Tables Iceberg / + Kafka) and connector Maven modules |
docs/ |
Guides, feature tour and screenshots, design documents, figures |
Tech stack: Next.js 15 · React 19 · TypeScript 5 · antd 6 · Node 20 · AWS CDK v2 · Python 3 · OpenMetadata 1.6.1 ·
Amazon Bedrock (four model families: Claude Opus / GPT / GLM / Kimi, switchable at runtime) · Bedrock AgentCore · MWAA Serverless · Redshift Serverless ·
S3 Tables (Iceberg) · Glue · EMR Serverless · DMS · Managed Service for Apache Flink 1.20 · Cognito · CloudFront + WAF · DynamoDB · KMS.
The pinned version of every component is maintained in docs/supported-versions.md.
- Latest release:
VERSION2.1.2, in customer production since 2026-10-29. The trunk of this repository is the 2.2.0 candidate (Next.js 15 / React 19, optional Glue 6.0, the data-source external-object lifecycle fixes, the stream-compute sample-data and EMR run-submission fixes, the security-scan remediation); at release timescripts/cut-release.shbumpsVERSION, creates the tag and, with--github-release, publishes the GitHub Release with the delivery archive and its SHA-256 attached. - Tag naming: from 2.2.0 on, every release is tagged
v<version>(v2.2.0) and a hotfix increments the patch number; earlier releases were taggedrelease-<date>and remain checkable in the engineering history. Customer deployments and upgrades always use a tag, never a branch head. - Increments and upgrade notes are in
CHANGELOG.md; every release is accepted by a full headless-browser run against a test account before the tag is cut (seedocs/development.md, section 11).
See CONTRIBUTING for more information.
This project is licensed under the MIT-0 License. See the LICENSE file.




















