Skip to content
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

Support for data azurerm_virtual_network_peering to identify state #27486

Open
1 task done
mpjtaylor opened this issue Sep 24, 2024 · 1 comment · May be fixed by #27530
Open
1 task done

Support for data azurerm_virtual_network_peering to identify state #27486

mpjtaylor opened this issue Sep 24, 2024 · 1 comment · May be fixed by #27530

Comments

@mpjtaylor
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave comments along the lines of "+1", "me too" or "any updates", they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment and review the contribution guide to help.

Description

Add the ability to data source the network peering so its possible to verify its state is connected.

New or Affected Resource(s)/Data Source(s)

azurerm_virtual_network_peering

Potential Terraform Configuration

data "azurerm_virtual_network" "example" {
  name                = "vnet01"
  resource_group_name = "rg01"
}

data "azurerm_virtual_network_peering" "example" {
  name = data.azurerm_virtual_network.example.vnet_peerings[0]
}

output "peeringstatus" {
value = data.azurerm_virtual_network_peering.example.state
}

References

No response

@ning-kang
Copy link
Contributor

I would like to work on this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants