How joeltalabi10/azureaiterraformdemo works
This repository is a live-demo kit for applying AI across an Azure Terraform lifecycle: author, review, deploy, and operate. Its main user path is editing Terraform, reviewing a proposed plan with AI, deploying through a human-approved workflow, then querying or managing the scoped environment through ChatOps. The MCP server’s three tools and the Terraform infrastructure are visible in source; the GitHub Actions workflow and Terraform resource details are represented from README documentation, since their source was not sampled.
Main entry points: terraform-ai-pipeline.yml CI Workflow · server.js Scoped MCP Server · terraform Terraform Configuration · ai_review.py AI Plan Review
Components 19
Author and Infrastructure
- Terraform Configuration
terraform - Azure App Service
terraform/main.tf - Azure SQL
terraform/main.tf - Terraform CLI
Review and Deploy
- CI Workflow
.github/workflows/terraform-ai-pipeline.yml - Terraform Plan
.github/workflows/terraform-ai-pipeline.yml - AI Plan Review
scripts/ai_review.py - PR Review Comment
.github/workflows/terraform-ai-pipeline.yml - Human Approval
.github/workflows/terraform-ai-pipeline.yml - Terraform Apply
.github/workflows/terraform-ai-pipeline.yml
ChatOps Operations
- Scoped MCP Server
mcp-server/server.js - Plan Tool
mcp-server/server.js - Apply Tool
mcp-server/server.js - Azure Query Tool
mcp-server/server.js
External Services
- Azure
- DeepSeek API
- GitHub Actions and PR
Other components
- Engineer
- MCP Client
Connections 21
- Engineer → Terraform Configuration: edits
README.md - Terraform Configuration → Azure App Service: defines
README.md - Terraform Configuration → Azure SQL: defines
README.md - GitHub Actions and PR → CI Workflow: runs
README.md - CI Workflow → Terraform Plan: runs plan
README.md - CI Workflow → AI Plan Review: invokes review
README.md - AI Plan Review → DeepSeek API: requests review
scripts/ai_review.py - AI Plan Review → PR Review Comment: writes review
README.md - CI Workflow → PR Review Comment: posts comment
README.md - CI Workflow → Human Approval: requires approval
README.md - Human Approval → Terraform Apply: approves apply
README.md - Terraform Apply → Azure: deploys changes
README.md - MCP Client → Scoped MCP Server: connects via stdio
mcp-server/server.js - Scoped MCP Server → Plan Tool: registers
mcp-server/server.js - Scoped MCP Server → Apply Tool: registers
mcp-server/server.js - Scoped MCP Server → Azure Query Tool: registers
mcp-server/server.js - Plan Tool → Terraform CLI: executes plan
mcp-server/server.js - Apply Tool → Terraform CLI: executes apply
mcp-server/server.js - Azure Query Tool → Azure: queries resources
mcp-server/server.js - Terraform CLI → Terraform Configuration: uses working directory
- Terraform CLI → Azure: plans or applies