Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: expose allow_dns_resolution_binding flag #436

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down