Adds configurable service endpoints to subnets in the vpc module

This commit is contained in:
Rob Gil 2020-01-22 19:35:19 -05:00
parent f6252ae571
commit 9042a960bb
2 changed files with 8 additions and 0 deletions

View File

@ -39,6 +39,8 @@ resource "azurerm_subnet" "subnet" {
lifecycle {
ignore_changes = [route_table_id]
}
service_endpoints = split(",", var.service_endpoints[each.key])
#delegation {
# name = "acctestdelegation"
#

View File

@ -46,3 +46,9 @@ variable "gateway_subnet" {
type = string
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"
}