How drhelius/terraform-azure-demo works
Project type and purpose
• This is an Infrastructure-as-Code (IaC) demo project using Terraform to provision resources in Azure.
• It also contains a small Dockerized Python “demo server” that Terraform can deploy onto a VM or container host in Azure.
File structure
• Top-level Terraform files:
• demo.tf – main resource definitions
• variables.tf – input variables
• output.tf – outputs of the Terraform run
• provision.sh – wrapper script to run Terraform commands
• docker-demo-server/ – folder with the Docker demo app
• docker-demo-server:
• Dockerfile – builds a Python image
• demo.py & requirements.txt – the Python application and its dependencies
• Supporting files:
• demo.tf references docker-demo-server build and deploy
• .gitignore, LICENSE, README.md for project metadata
• demo.tf might call local-exec or remote-exec to deploy the Docker container on the provisioned VM