Terraform Module to create Azure Resource Group resource.
module "resource_group1" {
source = "./vendor/modules/resource_group"
rg_name = "test-rg"
region = "eastus"
# Adding TAG's to your Azure resources (Required)
tags = {
c_environment = "dev"
c_cloud = "azure"
}
}
The Terrafile pattern is that instead of using the Git sources directly in module calls, we reference them in a file in Terrafile YAML format. In the Terraform configuration, in the module call, we instead use a local path relative to the modules folder.
Terrafile documentation: github.com/coretech/terrafile
Make sure to update terraform-docs generated section whenever new resource block, New input or output variable is added.
Name | Version |
---|---|
terraform | >= 0.15.5 |
azurerm | >=3.0.0 |
Name | Version |
---|---|
azurerm | >=3.0.0 |
No modules.
Name | Type |
---|---|
azurerm_resource_group.rg | resource |
Name | Description | Type | Default | Required |
---|---|---|---|---|
region | Location of Resource groups | string |
n/a | yes |
rg_name | Name of resource groups | string |
n/a | yes |
tags | A map of tags to add to all resources | map(string) |
{} |
no |
Name | Description |
---|---|
rg_location | Resource Group Locations |
rg_name | Resource Group Names |