-
Notifications
You must be signed in to change notification settings - Fork 0
Infrastructure Setup
Before you begin, ensure you have:
- Terraform installed on your system
- Azure Subscription with necessary permissions
- Azure CLI authenticated
- Ansible installed (for configuration management)
- GitHub Actions enabled (for automation)
Follow these steps to initialize and deploy your Terraform-managed cloud environment:
1οΈβ£ Clone the Repository
git clone https://github.com/XxrzxX/ChatBotApp-Azure-Infra
cd ChatBotApp-Azure-Infra2οΈβ£ Initialize Terraform
cd Terraform
terraform initThis downloads and configures Terraform providers required for deployment.
3οΈβ£ Validate Configuration
terraform validateEnsures your Terraform syntax and configurations are error-free.
4οΈβ£ Plan Deployment
terraform planGenerates an execution plan, showing all changes Terraform will apply.
5οΈβ£ Apply Infrastructure Changes
terraform apply -auto-approveCreates or updates the cloud resources as defined in your configuration.
6οΈβ£ Verify Resources
After successful deployment, confirm the infrastructure using Azure CLI:
az resource list --resource-group <your-resource-group>Refer to the Brainboard-generated illustration for a visual representation of the architecture: β‘ Terraform Infrastructure
This setup includes:
β
VM - For Chroma & RAG Chatbot
β
VMSS β Auto-scaling virtual machines
β
Networking β VNet, Subnets, NSGs
β
Storage β Blob storage & managed disks & database
β
Security β IAM roles, Key Vault integration
π Additional Resources
- Terraform Module Breakdown β Detailed explanation of each module Terraform Module Structure
- CI/CD Integration β Automating deployment using GitHub Actions CI/CD with GitHub Actions
- Troubleshooting Guide β Common issues and solutions Troubleshooting & Error Handling