generated from azurenoops/terraform-module-overlays-template
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathvariables.subnet.tf
47 lines (43 loc) · 2.11 KB
/
variables.subnet.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
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
############################
# Subnet Configuration ##
############################
variable "spoke_subnets" {
description = "A list of subnets to add to the spoke vnet"
type = map(object({
#Basic info for the subnet
name = string
address_prefixes = list(string)
service_endpoints = list(string)
private_endpoint_network_policies_enabled = string
private_endpoint_service_endpoints_enabled = bool
# Delegation block - see https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/subnet#delegation
delegation = optional(object({
name = string
service_delegation = object({
name = string
actions = list(string)
})
}))
#Subnet NSG rules - see https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/network_security_group#security_rule
nsg_subnet_rules = optional(map(object({
name = string
description = string
priority = number
direction = string
access = string
protocol = string
source_port_range = optional(string)
source_port_ranges = optional(list(string))
destination_port_range = optional(string)
destination_port_ranges = optional(list(string))
source_address_prefix = optional(string)
source_address_prefixes = optional(list(string))
source_application_security_group_ids = optional(list(string))
destination_address_prefix = optional(string)
destination_address_prefixes = optional(list(string))
destination_application_security_group_ids = optional(list(string))
})))
}))
}