-
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
Conversation
3-networks-hub-and-spoke/envs/shared/partner_interconnect.tf.example
Outdated
Show resolved
Hide resolved
| module.dns_hub_vpc.network_self_link | ||
| ] | ||
| target_name_server_addresses = data.google_compute_network.vpc_dns_hub.self_link | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing empty line at the end of file
| advertised_ip_ranges = [{ range = local.private_googleapis_cidr }] | ||
| advertised_ip_ranges = [ | ||
| { range = local.private_googleapis_cidr }, | ||
| { range = "35.199.192.0/19" } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{ range = "35.199.192.0/19" } is conditional on the network being the one that will access the dns server in the on-prem infrastructure
| advertised_ip_ranges = [{ range = local.restricted_googleapis_cidr }] | ||
| advertised_ip_ranges = [ | ||
| { range = local.restricted_googleapis_cidr }, | ||
| { range = "35.199.192.0/19" } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{ range = "35.199.192.0/19" } is conditional on the network being the one that will access the dns server in the on-prem infrastructure
| advertised_ip_ranges = concat( | ||
| [{ range = local.private_googleapis_cidr }], | ||
| var.private_service_cidr != null ? [{ range = "35.199.192.0/19" }] : [] | ||
| ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is the same value for each router.
this could be on a local
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
02decb3 to
573bdf4
Compare
2ab1b6e to
f7c4d14
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in the 3-networks-hub-and-spoke case the variable target_name_server_addresses is only used in the shared environment, so it does not need to exist in dev/nonprod/prod
changes:
- in the
base_envit should have an empty value default so that it would not be required - it should ne removed from dev/nonprod/prod
| asn = var.bgp_asn_subnet | ||
| advertised_groups = ["ALL_SUBNETS"] | ||
| advertised_ip_ranges = [{ range = local.private_googleapis_cidr }] | ||
| advertised_ip_ranges = var.private_service_cidr == null ? [{ range = local.google_private_service_range }] : [{ range = local.private_googleapis_cidr }] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be in a local since it is duplicated 4 times
| asn = var.bgp_asn_subnet | ||
| advertised_groups = ["ALL_SUBNETS"] | ||
| advertised_ip_ranges = [{ range = local.restricted_googleapis_cidr }] | ||
| advertised_ip_ranges = var.private_service_cidr == null ? [{ range = local.google_private_service_range }] : [{ range = local.restricted_googleapis_cidr }] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be in a local since it is duplicated 4 times
9df12d0 to
f7c4d14
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did a first check and have some suggestions,
if you're making a change is in the 3-networks-dual-svpc directory, make sure you replicate those to 3-networks-hub-and-spoke
No description provided.