浏览代码

Disables NAT gateway and updates the domain name

Fred Damstra 5 年之前
父节点
当前提交
385932f6ea
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 2 2
      base/standard_vpc/main.tf
  2. 1 1
      base/standard_vpc/vars.tf

+ 2 - 2
base/standard_vpc/main.tf

@@ -29,7 +29,7 @@ module "vpc" {
       "${cidrsubnet(var.cidr,3,6)}",
   ]
 
-  enable_nat_gateway = true
+  enable_nat_gateway = false
   enable_vpn_gateway = false
   enable_dns_hostnames = true
   enable_s3_endpoint = true
@@ -46,7 +46,7 @@ module "vpc" {
   kms_endpoint_security_group_ids  =  [ "${module.aws_endpoints_sg.this_security_group_id}" ]
   sts_endpoint_security_group_ids  =  [ "${module.aws_endpoints_sg.this_security_group_id}" ]
 
-  dhcp_options_domain_name = var.inside_domain
+  dhcp_options_domain_name = var.dns_info["private"]["zone"]
 
   tags = merge(var.standard_tags, var.tags)
 

+ 1 - 1
base/standard_vpc/vars.tf

@@ -15,8 +15,8 @@ variable "tags" {
 }
 
 # Inherited
+variable "dns_info" { type = map }
 variable "standard_tags" { type = map }
-variable "inside_domain" { type = string }
 variable "aws_region" { type = string }
 variable "aws_account_id" { type = string }
 variable "aws_partition" { type = string }