The first challenge of the Terraform On Azure initiative requested to create a new Azure web application via Terraform, and to configure it for continuos deployment
starting from a forked GitHub repo.
You can read more about the challenge here.
I used Terraform to:
- Deploy a resource group
- Deploy an app service plan
- Deploy an app service
- execute an AZ CLI command locally on the Terraform client, to connect the app server to the GitHub repo for continuos deployment
The last step used a local-exec provider, since the app service resource in Terraform doesn't admit continuous deployment configurations at the time of writing.
You need to previously register Azure as an authorized OAuth consumer on your GitHub account to call the last step successfully. This is a one time activity, and I did it manually.
Executed via VSCode connected to Ubuntu 18.04 WSL.
Tools used:
- Terraform v0.12.26
- provider.azurerm v2.15.0
- provider.null v2.1.2
My other repos, on for each challenge: