From db3ab89bfd485c0d72537bea9eb7f1c237bdfb5f Mon Sep 17 00:00:00 2001 From: Peter Baumgartner Date: Wed, 25 Apr 2018 12:33:01 -0600 Subject: [PATCH] Adds support for ClassicLink DNS --- main.tf | 7 ++++--- variables.tf | 5 +++++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/main.tf b/main.tf index ea72bd276..a23024c99 100644 --- a/main.tf +++ b/main.tf @@ -374,9 +374,10 @@ resource "aws_vpn_gateway_route_propagation" "private" { resource "aws_default_vpc" "this" { count = "${var.manage_default_vpc ? 1 : 0}" - enable_dns_support = "${var.default_vpc_enable_dns_support}" - enable_dns_hostnames = "${var.default_vpc_enable_dns_hostnames}" - enable_classiclink = "${var.default_vpc_enable_classiclink}" + enable_dns_support = "${var.default_vpc_enable_dns_support}" + enable_dns_hostnames = "${var.default_vpc_enable_dns_hostnames}" + enable_classiclink = "${var.default_vpc_enable_classiclink}" + enable_classiclink_dns_support = "${var.default_vpc_enable_classiclink_dns_support}" tags = "${merge(var.tags, var.default_vpc_tags, map("Name", format("%s", var.default_vpc_name)))}" } diff --git a/variables.tf b/variables.tf index 89e376c7c..9cfdcb6e3 100644 --- a/variables.tf +++ b/variables.tf @@ -235,6 +235,11 @@ variable "default_vpc_enable_classiclink" { default = false } +variable "default_vpc_enable_classiclink_dns_support" { + description = "Should be true to enable ClassicLink DNS in the Default VPC" + default = false +} + variable "default_vpc_tags" { description = "Additional tags for the Default VPC" default = {}