-
Notifications
You must be signed in to change notification settings - Fork 0
Dns refactory #130
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
base: main
Are you sure you want to change the base?
Dns refactory #130
Changes from 2 commits
7f3dbcf
20fd603
5ee619b
7f6644d
b6e1cf8
b6810c7
573bdf4
62274d7
e39a508
8306009
f7c4d14
04dbfcc
b27c513
770b957
71eda88
576a942
d92c5ce
cc17b6a
30000d3
e9867b6
1557bd0
7b3b67f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -40,6 +40,8 @@ module "peering_zone" { | |
| source = "terraform-google-modules/cloud-dns/google" | ||
| version = "~> 5.0" | ||
|
|
||
| count = local.mode == "spoke" ? 1 : 0 | ||
|
|
||
| project_id = var.project_id | ||
| type = "peering" | ||
| name = "dz-${var.environment_code}-shared-base-to-dns-hub" | ||
|
|
@@ -51,3 +53,23 @@ module "peering_zone" { | |
| ] | ||
| target_network = data.google_compute_network.vpc_dns_hub.self_link | ||
| } | ||
|
|
||
| /****************************************** | ||
| DNS Forwarding | ||
| *****************************************/ | ||
| module "dns-forwarding-zone" { | ||
| source = "terraform-google-modules/cloud-dns/google" | ||
| version = "~> 5.0" | ||
|
|
||
| count = var.mode != "spoke" ? 1 : 0 | ||
|
|
||
| project_id = var.project_id | ||
| type = "forwarding" | ||
| name = "fz-dns-hub" | ||
| domain = var.domain | ||
|
|
||
| private_visibility_config_networks = [ | ||
| module.dns_hub_vpc.network_self_link | ||
| ] | ||
| target_name_server_addresses = data.google_compute_network.vpc_dns_hub.self_link | ||
| } | ||
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -126,7 +126,10 @@ module "region1_router1" { | |
| bgp = { | ||
| asn = var.bgp_asn_subnet | ||
| advertised_groups = ["ALL_SUBNETS"] | ||
| advertised_ip_ranges = [{ range = local.private_googleapis_cidr }] | ||
| advertised_ip_ranges = [ | ||
| { range = local.private_googleapis_cidr }, | ||
| { range = "35.199.192.0/19" } | ||
|
||
| ] | ||
| } | ||
| } | ||
|
|
||
|
|
@@ -142,7 +145,10 @@ module "region1_router2" { | |
| bgp = { | ||
| asn = var.bgp_asn_subnet | ||
| advertised_groups = ["ALL_SUBNETS"] | ||
| advertised_ip_ranges = [{ range = local.private_googleapis_cidr }] | ||
| advertised_ip_ranges = [ | ||
| { range = local.private_googleapis_cidr }, | ||
| { range = "35.199.192.0/19" } | ||
| ] | ||
| } | ||
| } | ||
|
|
||
|
|
@@ -158,7 +164,10 @@ module "region2_router1" { | |
| bgp = { | ||
| asn = var.bgp_asn_subnet | ||
| advertised_groups = ["ALL_SUBNETS"] | ||
| advertised_ip_ranges = [{ range = local.private_googleapis_cidr }] | ||
| advertised_ip_ranges = [ | ||
| { range = local.private_googleapis_cidr }, | ||
| { range = "35.199.192.0/19" } | ||
| ] | ||
| } | ||
| } | ||
|
|
||
|
|
@@ -174,6 +183,9 @@ module "region2_router2" { | |
| bgp = { | ||
| asn = var.bgp_asn_subnet | ||
| advertised_groups = ["ALL_SUBNETS"] | ||
| advertised_ip_ranges = [{ range = local.private_googleapis_cidr }] | ||
| advertised_ip_ranges = [ | ||
| { range = local.private_googleapis_cidr }, | ||
| { range = "35.199.192.0/19" } | ||
| ] | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -130,7 +130,10 @@ module "region1_router1" { | |
| bgp = { | ||
| asn = var.bgp_asn_subnet | ||
| advertised_groups = ["ALL_SUBNETS"] | ||
| advertised_ip_ranges = [{ range = local.restricted_googleapis_cidr }] | ||
| advertised_ip_ranges = [ | ||
| { range = local.restricted_googleapis_cidr }, | ||
| { range = "35.199.192.0/19" } | ||
|
||
| ] | ||
| } | ||
| } | ||
|
|
||
|
|
@@ -146,7 +149,10 @@ module "region1_router2" { | |
| bgp = { | ||
| asn = var.bgp_asn_subnet | ||
| advertised_groups = ["ALL_SUBNETS"] | ||
| advertised_ip_ranges = [{ range = local.restricted_googleapis_cidr }] | ||
| advertised_ip_ranges = [ | ||
| { range = local.restricted_googleapis_cidr }, | ||
| { range = "35.199.192.0/19" } | ||
| ] | ||
| } | ||
| } | ||
|
|
||
|
|
@@ -162,7 +168,10 @@ module "region2_router1" { | |
| bgp = { | ||
| asn = var.bgp_asn_subnet | ||
| advertised_groups = ["ALL_SUBNETS"] | ||
| advertised_ip_ranges = [{ range = local.restricted_googleapis_cidr }] | ||
| advertised_ip_ranges = [ | ||
| { range = local.restricted_googleapis_cidr }, | ||
| { range = "35.199.192.0/19" } | ||
| ] | ||
| } | ||
| } | ||
|
|
||
|
|
@@ -178,6 +187,9 @@ module "region2_router2" { | |
| bgp = { | ||
| asn = var.bgp_asn_subnet | ||
| advertised_groups = ["ALL_SUBNETS"] | ||
| advertised_ip_ranges = [{ range = local.restricted_googleapis_cidr }] | ||
| advertised_ip_ranges = [ | ||
| { range = local.restricted_googleapis_cidr }, | ||
| { range = "35.199.192.0/19" } | ||
| ] | ||
| } | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.