Adds configurable service endpoints to subnets in the vpc module
This commit is contained in:
parent
f6252ae571
commit
9042a960bb
@ -39,6 +39,8 @@ resource "azurerm_subnet" "subnet" {
|
|||||||
lifecycle {
|
lifecycle {
|
||||||
ignore_changes = [route_table_id]
|
ignore_changes = [route_table_id]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
service_endpoints = split(",", var.service_endpoints[each.key])
|
||||||
#delegation {
|
#delegation {
|
||||||
# name = "acctestdelegation"
|
# name = "acctestdelegation"
|
||||||
#
|
#
|
||||||
|
@ -46,3 +46,9 @@ variable "gateway_subnet" {
|
|||||||
type = string
|
type = string
|
||||||
description = "The Subnet CIDR that we'll use for the virtual_network_gateway 'GatewaySubnet'"
|
description = "The Subnet CIDR that we'll use for the virtual_network_gateway 'GatewaySubnet'"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
variable "service_endpoints" {
|
||||||
|
type = map
|
||||||
|
description = "A map of the service endpoints and its mapping to subnets"
|
||||||
|
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user