Remove private dns zone on azure vnet and subnet tfm module#1047
Closed
Remove private dns zone on azure vnet and subnet tfm module#1047
Conversation
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Init release module project.
Init release module project.
Co-authored-by: fs-prefapp-state[bot] <261589752+fs-prefapp-state[bot]@users.noreply.github.com>
* Add azure-dns-zone module * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * Set release-please manifest --------- Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Fix release please manifest
Co-authored-by: fs-prefapp-state[bot] <261589752+fs-prefapp-state[bot]@users.noreply.github.com>
…nd-subnet-tfm-module
Contributor
There was a problem hiding this comment.
Pull request overview
This PR removes Private DNS Zone creation/linking functionality from the azure-vnet-and-subnet Terraform module, simplifying the module to only manage VNets, subnets, and VNet peerings.
Changes:
- Removes the
private_dns_zonesinput variable from the module. - Deletes the
azurerm_private_dns_zoneandazurerm_private_dns_zone_virtual_network_linkresources. - Removes the related outputs and partial README references.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| modules/azure-vnet-and-subnet/variables.tf | Removes private_dns_zones input, but currently leaves peerings/tags definitions in a broken state. |
| modules/azure-vnet-and-subnet/private_dns_zone.tf | Deletes Private DNS Zone resource creation. |
| modules/azure-vnet-and-subnet/private_dns_zone_vnet_link.tf | Deletes Private DNS Zone ↔ VNet link resource creation logic. |
| modules/azure-vnet-and-subnet/outputs.tf | Removes private DNS-related outputs. |
| modules/azure-vnet-and-subnet/README.md | Removes some private DNS references, but still contains stale examples/outputs further down. |
Comments suppressed due to low confidence (2)
modules/azure-vnet-and-subnet/variables.tf:28
variables.tfis now syntactically invalid: thepeeringsvariable’stype = list(object({ ...block is not closed, and the subsequenttagsvariable fields appear to be accidentally inlined insidepeerings(thevariable "tags" {header and the remainingpeeringsattributes are missing). This will preventterraform init/validatefrom running. Restore a completepeeringsobject schema (matching the fields used invnet-peering.tf) and reintroduce a separatevariable "tags"block.
description = "List of virtual network peerings"
type = list(object({
peering_name = string
allow_forwarded_traffic = optional(bool, false)
description = "The tags to associate with your resources"
modules/azure-vnet-and-subnet/README.md:56
- The README removes
private_dns_zonesfrom the Inputs table, but later sections still document and show usage/output forprivate_dns_zones,private_dns_zone_ids, andprivate_dns_zone_virtual_network_link_ids(see the.tfvarsexample and Output snippet further down). Please update/remove those examples and output docs so the README matches the module after dropping private DNS zone support.
| `peerings` | List of virtual network peerings | list(object) | `[]` | no |
| `peerings.peering_name` | The name of the peering | string | n/a | yes |
| `peerings.allow_forwarded_traffic` | Whether forwarded traffic is allowed | bool | `false` | no |
| `peerings.allow_gateway_transit` | Whether gateway transit is allowed | bool | `false` | no |
| `peerings.allow_virtual_network_access` | Whether virtual network access is allowed | bool | `true` | no |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…nd-subnet-tfm-module
…nd-subnet-tfm-module
Contributor
|
Desestimada |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.