Course outlines for learning terraform.
You module is ready to be used in your learn-terraform-azure
repository.
resource "azurerm_resource_group" "rg" {
name = "rf-robertdebock-sbx"
location = "west europe"
tags = {
Environment = "Terraform Getting Started"
Team = "DevOps"
}
}
module "my_azurerm_resource_group" {
source = "../../my_azurerm_resource_group/"
name = "test_rg"
tags = {
Environment = "Terraform Getting Started"
Team = "DevOps"
}
}
NOTE: The source
path (../../
) depends on where your root-module and module are placed. This may need modification.
terraform init
do “download” the module. (This module is local…)terraform plan
, and terraform apply
.