An Azure infrastructure deployment project using Terraform, featuring load balancing and two virtual machines with customized initialization scripts for setting up static websites.
Azure Infrastructure Deployment with Terraform is a project that showcases the automated deployment of an Azure infrastructure using Terraform. It provisions a load balancer and deploys two virtual machines, each with customized initialization scripts for hosting static websites. This project simplifies the process of setting up and managing a scalable infrastructure on Azure, enabling efficient hosting of static web content. Explore the code and deployment instructions to quickly get started with deploying your own Azure infrastructure using Terraform.
- Azure subscription
- Terraform installed
- Clone the repository:
git clone https://github.com/R-D-Y/HA-Terraform-Azure.git
Navigate to the project directory:
cd your-repo
Initialize Terraform:
terraform init
Review and modify the Terraform configuration files according to your requirements. (Like your subscription ID for example)
Creates an execution plan:
terraform plan
Deploy the infrastructure:
terraform apply
Custom Initialization Scripts The first virtual machine executes a script that sets up an Nginx server and deploys a static website from HTML-PAGE-NODE-2.html. The second virtual machine executes a script that installs Nginx and deploys a static website from HTML-PAGE-NODE-1.html. Feel free to modify the initialization scripts or replace them with your own.
To remove the deployed infrastructure, run:
terraform destroy --auto-approve
Note: This will permanently delete all resources created by this project.
This project is licensed under the MIT License.