# Infrastructure Monorepo **Purpose**: Consolidated infrastructure as code for all projects **Status**: 🚧 Structure Complete - Ready for Consolidation --- ## Overview This directory contains all infrastructure as code, organized for easy management and deployment. --- ## Structure ``` infrastructure/ ├── terraform/ # Terraform modules and configurations │ ├── modules/ # Shared Terraform modules │ └── examples/ # Example configurations ├── kubernetes/ # Kubernetes configurations │ ├── shared-cluster/ # Shared cluster setup │ └── dev-staging/ # Dev/staging cluster configs ├── monitoring/ # Monitoring stack │ ├── prometheus/ # Prometheus/Grafana │ ├── loki/ # Loki logging │ └── alerts/ # Alerting rules ├── api-gateway/ # API Gateway (Kong) ├── event-bus/ # Event bus (NATS) ├── identity/ # Identity provider (Keycloak) └── data-storage/ # Data storage (MinIO) ``` --- ## Terraform Modules ### Azure Modules - `azure/networking` - Virtual networks and subnets - `azure/keyvault` - Key Vault - `azure/storage` - Storage accounts ### Kubernetes Modules - `kubernetes/namespace` - Namespace with quotas --- ## Deployment ### Monitoring ```bash cd monitoring/prometheus && ./install.sh cd monitoring/loki && ./install.sh ``` ### API Gateway ```bash cd api-gateway/kong && ./install.sh ``` ### Event Bus ```bash cd event-bus/nats && ./install.sh ``` ### Identity ```bash kubectl apply -f identity/keycloak/k8s-deployment.yaml ``` ### Data Storage ```bash kubectl apply -f data-storage/minio/k8s-deployment.yaml ``` --- ## Documentation - [Infrastructure Deployment Guide](../docs/INFRASTRUCTURE_DEPLOYMENT_GUIDE.md) - [Terraform Migration Guide](../docs/TERRAFORM_MIGRATION_GUIDE.md) --- **Status**: 🚧 Structure Complete - Ready for Project Consolidation