-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
main.tf
46 lines (41 loc) · 1.03 KB
/
main.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
provider "azurerm" {
features {}
}
resource "random_id" "rg_name" {
byte_length = 8
}
resource "azurerm_resource_group" "test" {
location = var.location
name = "testRG-${random_id.rg_name.hex}"
}
module "network" {
source = "../../"
resource_group_name = azurerm_resource_group.test.name
address_spaces = ["10.0.0.0/16", "10.2.0.0/16"]
subnet_prefixes = ["10.0.1.0/24", "10.0.2.0/24", "10.0.3.0/24"]
subnet_names = ["subnet1", "subnet2", "subnet3"]
subnet_enforce_private_link_endpoint_network_policies = {
"subnet1" : true
}
subnet_delegation = {
subnet1 = [
{
name = "delegation"
service_delegation = {
name = "Microsoft.ContainerInstance/containerGroups"
actions = [
"Microsoft.Network/virtualNetworks/subnets/action",
]
}
}
]
}
subnet_service_endpoints = {
"subnet1" : ["Microsoft.Sql"]
}
tags = {
environment = "dev"
costcenter = "it"
}
use_for_each = var.use_for_each
}