Simple azure terraform example
Step-by-step introduction here
- Terraform:
- https://www.terraform.io/downloads.html
- you should be able to run
terraform -help
- Azure CLI:
- https://docs.microsoft.com/cli/azure
- you should be able to run
az login
- Github client:
- A source-code editor (IDE)
- Fork and download
- Create the file terraform.tfvars
- set the variable app_name
app_name = "<INSERT_HERE>"
- Initialize Terraform
terraform init
- Terraform plan
terraform plan
If everything now works, it's time to create your resources in Azure.
- Authenticate towards Azure (if you haven't already done this)
az login
- Create all the resources
terraform apply
Remember to clean up and delete all the resources when the testing is done.
terraform destroy