This repository contains the terraform code responsible for creating classic three tier setup.
- Azure account
- Azure CLI
- Az login
- Terraform
- public key and private key for VMs at ./compute/vm-access.pem amd ./compute/vm-access.pub
- User sends a request to a LB in
gatewaysubnet which accepts traffic on port80 - Request is then routed to
webVMs inwebsubnet WebVMs then sends requests toLogicLB inlogicsubnet on port 3000LogicVMs then queries a DB instance indatasubnet throughdataLB on port3306
- VMs in vnet are only accesible from Bastion Hosts
- Subnets are locked down to accept traffic from intended subnets only
Create Azure Diagram with AzViz
Create Azure Diagram with AzViz
# module initialisation
terraform init
# format code
terraform format
# validate code
terraform validate
# apply
terraform apply
# destroy
terraform destroy