How srikanth-kola-personal/azure-platform-engineering-lab works
This repository is a hands-on Azure internal developer platform lab. Its main flow is a developer request through GitHub Actions, generated application repository, Terraform provisioning and deployment, endpoint monitoring, and TTL-driven cleanup. The controller supplies the lifecycle state machine, inventory, reconciliation, and guarded repository deletion. The README documents the product flow and three golden paths; source excerpts support the controller’s internal calls. Workflow and Terraform implementation details are not sampled, so those links rely on README statements.
Main entry points: cli.ts Controller CLI · lifecycle.ts Lifecycle service · New-GeneratedRepository.ps1 Generated repository · reconciler.ts Reconciliation
Components 23
Self-service requests
- Request workflow
.github/workflows/request-environment.yml - Generated repository
scripts/New-GeneratedRepository.ps1
Application delivery
- Application scaffold
scaffolds/application - Golden paths
golden-paths - Deploy workflow
scaffolds/application/base/.github/workflows/deploy.yml - Terraform runner
runner/ade-terraform - Application endpoint
Azure platform
- Bootstrap resources
bootstrap/main.tf - Shared platform
platform/main.tf - Policy guardrails
policies - Monitoring
platform/lifecycle-monitoring.tf
Lifecycle control
- Environment inventory
controller/src/inventory.ts - Controller CLI
controller/src/cli.ts - Lifecycle service
controller/src/lifecycle.ts - Reconciliation
controller/src/reconciler.ts - Safe repository deletion
controller/src/github.ts
Controller internals
- Request and record validation
controller/src/schema.ts - Lifecycle state machine
controller/src/state-machine.ts - Azure token provider
controller/src/access-token.ts - UUID generation
controller/src/uuidv7.ts
Other components
- Developer
- GitHub
- Azure subscription
Connections 27
- Developer → Request workflow: requests environment
README.md - Request workflow → Generated repository: creates repository
README.md - Generated repository → Application scaffold: uses scaffold
README.md - Generated repository → Golden paths: selects path
README.md - Generated repository → Deploy workflow: deploys through
README.md - Deploy workflow → Terraform runner: runs Terraform
README.md - Golden paths → Azure subscription: provisions environment
README.md - Deploy workflow → Application endpoint: deploys application
README.md - Bootstrap resources → Azure subscription: bootstraps subscription
README.md - Shared platform → Azure subscription: provides shared resources
README.md - Policy guardrails → Golden paths: constrains resources
README.md - Monitoring → Azure subscription: observes workloads
README.md - Application endpoint → Monitoring: is observed by
README.md - Request workflow → Controller CLI: initializes lifecycle
- Controller CLI → Request and record validation: validates inputs
controller/src/cli.ts - Controller CLI → Lifecycle service: invokes lifecycle
controller/src/cli.ts - Controller CLI → Safe repository deletion: requests deletion
controller/src/cli.ts - Lifecycle service → Environment inventory: reads and updates
controller/src/lifecycle.ts - Lifecycle service → Lifecycle state machine: transitions phases
controller/src/lifecycle.ts - Lifecycle service → Request and record validation: parses extensions
controller/src/lifecycle.ts - Lifecycle service → UUID generation: creates operation IDs
controller/src/lifecycle.ts - Safe repository deletion → Lifecycle state machine: verifies absence
controller/src/github.ts - Reconciliation → Controller CLI: selects cleanup actions
controller/src/cli.ts - Controller CLI → Environment inventory: lists environments
controller/src/cli.ts - Azure token provider → Azure subscription: gets storage token
- Reconciliation → Azure subscription: checks expiry and absence
README.md - Reconciliation → Safe repository deletion: guards repository cleanup
README.md