Skip to content

Conversation

@renato-rudnicki
Copy link
Owner

No description provided.

module.dns_hub_vpc.network_self_link
]
target_name_server_addresses = data.google_compute_network.vpc_dns_hub.self_link
}
Copy link
Collaborator

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" }
Copy link
Collaborator

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" }
Copy link
Collaborator

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

Comment on lines 167 to 170
advertised_ip_ranges = concat(
[{ range = local.private_googleapis_cidr }],
var.private_service_cidr != null ? [{ range = "35.199.192.0/19" }] : []
)
Copy link
Collaborator

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

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@renato-rudnicki renato-rudnicki force-pushed the review-dns-refactory branch 2 times, most recently from 2ab1b6e to f7c4d14 Compare November 27, 2024 19:35
Copy link
Collaborator

@daniel-cit daniel-cit left a 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_env it 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 }]
Copy link
Collaborator

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 }]
Copy link
Collaborator

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

@renato-rudnicki renato-rudnicki changed the base branch from review-dns-refactory to master December 13, 2024 15:03
Copy link

@caetano-colin caetano-colin left a 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants