How googlecloudplatform/cortex-framework works
Cortex Framework builds and deploys modular, Dataform-orchestrated BigQuery data foundations and data products, especially for SAP ECC, S/4HANA, and SAP BDC. The main workflow is configuration loading and validation, module resolution and SQL generation, then deployment through Dataform; optional branches cover environment checks, Knowledge Catalog synchronization, external lakehouse catalogs, sample data, and telemetry. The README documents several capabilities whose implementation was not sampled, so those relationships are shown as documented rather than inferred from source calls.
Main entry points: build.py Build or deploy CLI · deploy.py Deployment orchestrator · config_loader.py Config loader · registry.py Plugin registry
Components 26
Configuration and modules
- Build or deploy CLI
src/tools/build.py - Config loader
src/common/services/config_loader.py - Config models
src/common/schemas/config_schema.py - Module providers
src/common/services - Plugin registry
src/common/registry.py - Module manifests
src/common/schemas/manifest_schema.py
Data product build
- SAP product builder
src/common/builders/sap_product_builder.py - SAP foundation builder
src/data_modules/cortex/sap/foundations/sap/builder.py - SAP data products
src/data_modules/cortex/sap/products - V6 compatibility products
src/data_modules/cortex_v6_compatibility/sap/products - Dataform SQL includes
src/dataform_includes
Cloud deployment
- Deployment orchestrator
src/tools/deploy.py - Deployment actions
src/common/deployers/actions.py - Dataform client
src/common/clients/dataform.py - BigQuery client
src/common/clients/bq/bigquery.py - GCP environment checks
src/common/services/gcp_environment_checker.py
Metadata and operations
- Knowledge Catalog sync
src/common/services/dataplex/data_products_sync.py - Knowledge Catalog client
src/common/clients/dataplex/data_product.py - External catalog provider
src/common/services/external_module_provider.py - Lakehouse client
src/common/clients/lakehouse.py - Telemetry
src/common/services/telemetry/telemetry_logger.py - Telemetry consent
src/common/services/telemetry/consent_manager.py - Resource Manager client
src/common/clients/resource_manager.py
Other components
- Framework user
- Google BigQuery
- Google Dataform
Connections 31
- Framework user → Build or deploy CLI: runs
README.md - Build or deploy CLI → Config loader: loads config
src/tools/build.py - Config loader → Config models: validates as
src/common/services/config_loader.py - Config loader → Module providers: resolves modules
src/common/services/config_loader.py - Module providers → Plugin registry: discovers plugins
- Build or deploy CLI → Plugin registry: selects deployer
src/tools/build.py - Plugin registry → Module manifests: registers builders
src/common/registry.py - Build or deploy CLI → SAP foundation builder: builds modules
src/tools/build.py - Build or deploy CLI → SAP product builder: builds modules
- SAP product builder → Plugin registry: uses registry
src/common/builders/sap_product_builder.py - SAP foundation builder → SAP data products: generates foundation
- Build or deploy CLI → SAP data products: generates products
README.md - Build or deploy CLI → V6 compatibility products: generates products
README.md - SAP data products → Dataform SQL includes: uses SQL helpers
README.md - Framework user → Deployment orchestrator: runs deployment
README.md - Deployment orchestrator → Config loader: loads config
src/tools/deploy.py - Deployment orchestrator → Deployment actions: executes actions
src/common/deployers/actions.py - Deployment actions → Dataform client: calls API
src/common/deployers/actions.py - Dataform client → Google Dataform: deploys workflows
README.md - Google Dataform → Google BigQuery: executes SQL
README.md - Deployment orchestrator → GCP environment checks: checks environment
src/tools/deploy.py - GCP environment checks → BigQuery client: checks datasets
src/common/services/gcp_environment_checker.py - BigQuery client → Google BigQuery: reads and writes
src/common/clients/bq/bigquery.py - Deployment orchestrator → Knowledge Catalog sync: syncs metadata
README.md - Knowledge Catalog sync → Knowledge Catalog client: publishes products
- Knowledge Catalog client → Google BigQuery: describes products
README.md - Module providers → External catalog provider: resolves catalogs
src/common/services/config_loader.py - External catalog provider → Lakehouse client: uses client
src/common/services/external_module_provider.py - Deployment orchestrator → Telemetry: reports usage
src/tools/deploy.py - Telemetry → Telemetry consent: checks consent
src/common/services/telemetry/telemetry_logger.py - Telemetry → Resource Manager client: gets project data
src/common/services/telemetry/telemetry_logger.py