How shukrikhalid/mbank-infra works
Mbank Infrastructure Platform is an AWS landing-zone and self-service infrastructure system. Application teams define shared and environment-specific YAML; the generator merges platform defaults and overrides, enforces compliance locks, validates the result, and emits Terraform inputs and a module invocation. Platform capabilities include reusable workload modules and centralized organization, networking, security, and shared services. The generator and validator relationships are supported by sampled source; broader AWS account and service relationships are documented in the README, while unsampled implementation details are not inferred.
Main entry points: generator.py Infrastructure Generator · applications App Config · merger.py Defaults Merger · modules Reusable Modules
Components 16
Application Config
- App Config
applications - Environment Overrides
applications - Platform Defaults
platform/defaults
Config Processing
- Infrastructure Generator
pipeline/generator/generator.py - Defaults Merger
pipeline/generator/merger.py - Compliance Enforcer
pipeline/generator/enforcer.py - Schema Validator
platform/schema/infra-schema.json - Terraform Inputs
applications
Infrastructure Modules
- Reusable Modules
platform/modules
AWS Foundation
- Account Vending
org/management/aft - Organizations and SCPs
org/management/organizations - Hub Network
org/network - Shared Services
org/shared-services
Security Controls
- Security Monitoring
org/security
Other components
- Application Team
- AWS Environment
Connections 15
- Application Team → App Config: defines infrastructure
README.md - App Config → Infrastructure Generator: provides config
pipeline/generator/generator.py - Infrastructure Generator → Defaults Merger: merges defaults
pipeline/generator/generator.py - Defaults Merger → Platform Defaults: loads defaults
pipeline/generator/merger.py - Infrastructure Generator → Environment Overrides: loads overrides
pipeline/generator/generator.py - Infrastructure Generator → Compliance Enforcer: enforces locks
pipeline/generator/generator.py - Infrastructure Generator → Schema Validator: validates against
pipeline/generator/generator.py - Infrastructure Generator → Terraform Inputs: writes Terraform inputs
pipeline/generator/generator.py - Terraform Inputs → Reusable Modules: selects compute module
- Reusable Modules → AWS Environment: provisions infrastructure
- Account Vending → AWS Environment: vends accounts
README.md - Organizations and SCPs → AWS Environment: sets organization controls
README.md - Hub Network → AWS Environment: provides inspected connectivity
README.md - Shared Services → AWS Environment: provides shared services
README.md - Security Monitoring → AWS Environment: monitors accounts
README.md