Terraform is an open-source infrastructure as code software tool that provides a consistent CLI workflow to manage hundreds of cloud services. Terraform codifies cloud APIs into declarative configuration files.
First, install terraform
easily with a package manager like brew
:
$ brew upgrade && brew install terraform
Since these labs are designed to run on Azure, you must install the azure cli
command line tool.
$ brew upgrade && brew install azure-cli
To install Azure provider
, copy and paste this code into your Terraform configuration. Then, run terraform init
.
Terraform 0.13+
terraform {
required_version = ">= 0.13"
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "2.78.0"
}
}
}
provider "azurerm" {
# Configuration options
features{}
}
MIT License
See LICENSE to see the full text.