Provisioning Virtual Machine and related resources in Azure Platform using Terraform as IaC tool to deploy it.
-
The
terraform.yml
automates Continuous Integration (CI) executing terraform initialize, validate, plan, and performs Continuous Dilivery (CD) that executes terraform apply to provision resources as stated inmain.tf
. -
The
workflow_dispatch.yml
allows manual trigger towards deprovisioning of the resources for cost effectiveness. -
The
terraform.tfvars
allows setup for multiple environments. -
The
backend
configuration creates new Resource Group to avoid saving on runner's machine, enhancing security and effective team collaboration.
Note: It is important to Create TFState Backup Resource Group Prior to allow Terraform to initialize backend configuration.
Please visit the WIKI page.
- Terraform Documentation
- Azure Documentation
- PowerShell: PowerShell file used to centralize terraform commands related to this project.
- GitHub: Platform for version control and collaboration.
backend.ps1
- Reference: Microsoft Reactor Series