When customers begin working with Azure they usually log into the portal and start to build things using the GUI. After building their resources they notice they can download a template of their newly configured resource. Azure exports an ARM template that can be used to automate your next build. Customers love the idea of automation and what that can do to help them leverage the cloud.
That’s a great starting point, then you start looking at ARM templates and realize that it is written in JSON. Okay, that adds in an element of learning. Then when you deploy the ARM template you find that it fails, but why? Essentially, you’re learning a new technology but there are some specific limiters in cloud adoption and skilling up. Ideally though, this same person is managing an on-premises infrastructure and maybe other clouds. They’ve hit a technical blocker.
Let me introduce Terraform, an open source tool created by Hashicorp that helps to remove the blockers that many encounters when adopting cloud technologies.
In this series of articles, I am going to introduce Terraform and break down different components of how it works, in bite sized chunks. Terraform is an open source product, so new features are constantly being added to its capability.
As mentioned, Terraform is an open source tool created by Hashicorp that users HCL (Hashicorp Configuration Language), based on GO. Essentially, it’s much much simpler to read and learn over JSON. Which is instrumental in learning how to write scripts, especially for someone that may not have a developer’s background. Terraform is a tool that you can use to deploy resources into your infrastructure using what they call providers. You’re probably thinking, so what? I can do that with the tools I have today: PowerShell, Ansible, CloudFormation, etc.
Terraform doesn’t just deploy resources, it has the additional benefits:
- Build resources, make changes and call existing resources
- Encourages collaboration
- Enables governance
- Enable CI/CD (Continuous Integration/Continuous Deployment)
This blog is going to walk you through various components of Terraform using a series of videos. I have documented the references that were made in the videos. Follow the links to cover off each topic. All of these videos focus on deploying to Azure. In order to other environments/clouds, the same concepts can be used, re-writing the scripts to fit that provider (AWS, GCP, VMware, etc).
Let’s look at the first video covering off Terraform on Azure – the basics:
After you’ve watched the above video and are comfortable with the basics of Terraform, you can go into greater detail with the other topics below:
Terraform and Azure DevOps – Delivering CI/CD deployments – Link Coming Soon! In the meantime you can watch the video on Channel9
Terraform and Github Actions – Delivering code from your repo – Link Coming Soon! In the meantime, you can watch the video on Channel9