diff --git a/main.tf b/main.tf index a0583238..9a3fba32 100644 --- a/main.tf +++ b/main.tf @@ -81,10 +81,11 @@ resource "ibm_is_virtual_endpoint_gateway" "vpe" { for gateway in local.gateway_list : (gateway.name) => gateway } - name = each.key - vpc = var.vpc_id - resource_group = var.resource_group_id - security_groups = var.security_group_ids + name = each.key + vpc = var.vpc_id + resource_group = var.resource_group_id + security_groups = var.security_group_ids + allow_dns_resolution_binding = var.allow_dns_resolution_binding # check if target is a CRN and handle accordingly target { diff --git a/variables.tf b/variables.tf index 4a502193..546c26f4 100644 --- a/variables.tf +++ b/variables.tf @@ -26,6 +26,12 @@ variable "vpc_id" { default = null } +variable "allow_dns_resolution_binding" { + description = "Indicates whether to allow this endpoint gateway to participate in DNS resolution bindings with a VPC that is enabled as a DNS name resolution hub." + type = bool + default = false +} + variable "subnet_zone_list" { description = "List of subnets in the VPC where gateways and reserved IPs will be provisioned. This value is intended to use the `subnet_zone_list` output from the Landing Zone VPC Subnet Module (https://github.com/terraform-ibm-modules/terraform-ibm-landing-zone-vpc) or from templates using that module for subnet creation." type = list(