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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for azurerm_relay_namespace/azurerm_relay_hybrid_connection data sources #21144

Open
1 task done
jared-koiter opened this issue Mar 27, 2023 · 1 comment
Open
1 task done

Comments

@jared-koiter
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 "+1" or "me too" comments, 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

Description

When connecting an Azure web app to a hybrid connection (https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/web_app_hybrid_connection) we need to reference an azurerm_relay_hybrid_connection ID which itself is part of an azurerm_relay_namespace. Creating and managing these resources with Terraform is fine, but we would like to be able to reference an existing hybrid connection relay/namespace created outside of Terraform. Manually entering the full resource ID is an option, but it would be nice if there was a data source for both the azurerm_relay_namespace and azurerm_relay_hybrid_connection resource types that would allow us to reference information from existing resources.

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

azurerm_relay_namespace, azurerm_relay_hybrid_connection

Potential Terraform Configuration

data "azurerm_relay_namespace" "example" {
  name                = "example-relay-namespace"
  resource_group_name = "example-resource-group"
}

data "azurerm_relay_hybrid_connection" "example" {
  name                = "example-relay-hybrid-connection"
  resource_group_name = "example-resource-group"
}

References

No response

@matty
Copy link

matty commented Aug 7, 2023

I have the same issue requiring a data source for relay hybrid connections. @mybayern1974 Did you find any solution?

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

No branches or pull requests

4 participants