forked from aztfmod/level0
-
Notifications
You must be signed in to change notification settings - Fork 0
/
reource_group.tf
55 lines (44 loc) · 1.44 KB
/
reource_group.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
resource "azurecaf_naming_convention" "rg_tfstate" {
name = var.resource_group_tfstate
prefix = local.prefix
resource_type = "azurerm_resource_group"
convention = var.convention
}
resource "azurerm_resource_group" "rg_tfstate" {
name = azurecaf_naming_convention.rg_tfstate.result
location = var.location
tags = local.tags
}
resource "azurecaf_naming_convention" "rg_security" {
name = var.resource_group_security
prefix = local.prefix
resource_type = "azurerm_resource_group"
convention = var.convention
}
resource "azurerm_resource_group" "rg_security" {
name = azurecaf_naming_convention.rg_security.result
location = var.location
tags = local.tags
}
resource "azurecaf_naming_convention" "rg_devops" {
name = var.resource_group_devops
prefix = local.prefix
resource_type = "azurerm_resource_group"
convention = var.convention
}
resource "azurerm_resource_group" "rg_devops" {
name = azurecaf_naming_convention.rg_devops.result
location = var.location
tags = local.tags
}
resource "azurecaf_naming_convention" "rg_network" {
name = var.resource_group_networking
prefix = local.prefix
resource_type = "azurerm_resource_group"
convention = var.convention
}
resource "azurerm_resource_group" "rg_network" {
name = azurecaf_naming_convention.rg_network.result
location = var.location
tags = local.tags
}