module "rg" {
source = "registry.terraform.io/libre-devops/rg/azurerm"
rg_name = "rg-${var.short}-${var.loc}-${terraform.workspace}-build" // rg-ldo-euw-dev-build
location = local.location // compares var.loc with the var.regions var to match a long-hand name, in this case, "euw", so "westeurope"
tags = local.tags
# lock_level = "CanNotDelete" // Do not set this value to skip lock
}
For a full example build, check out the Libre DevOps Website
No requirements.
No modules.
Name |
Description |
Type |
Default |
Required |
location |
The location for this resource to be put in |
string |
n/a |
yes |
lock_level |
Specifies the Level to be used for this RG Lock. Possible values are Empty (no lock), CanNotDelete and ReadOnly. |
string |
"" |
no |
rg_name |
The name of the resource group, this module does not create a resource group, it is expecting the value of a resource group already exists |
string |
n/a |
yes |
tags |
The tags to associate with your network and subnets. |
map(string) |
n/a |
yes |