Closed rohithegde closed 2 months ago
hi @catriona-m have you been able to work on this?
Hi @thejohnbackes
I currently have a PR open for upgrading the eventhubs sdk and hope to get to this issue in the near future once that is merged
Hi @thejohnbackes @catriona-m
Can you please share example on how to set the network_rule sets block right now in version 3.43.0?
I am struggling with setting it right way, as there are no examples.
Do you have any examples @rohithegde ?
i am having same issue, unable to set network rules for eventhub Installing hashicorp/azurerm v3.34.0...
Error: Invalid resource type β β on .terraform/modules/eventhub_namespace/modules/eventhub_namespace/main.tf line 19, in resource "azurerm_eventhub_namespace_network_rule_set" "networkrules": β 19: resource "azurerm_eventhub_namespace_network_rule_set" "networkrules" { β β The provider hashicorp/azurerm does not support resource type β "azurerm_eventhub_namespace_network_rule_set". β΅ β· β Error: Invalid resource type β β on .terraform/modules/networkrules/modules/networkrules/main.tf line 2, in resource "azurerm_eventhub_namespace_network_rule_set" "networkrules": β 2: resource "azurerm_eventhub_namespace_network_rule_set" "networkrules" { β β The provider hashicorp/azurerm does not support resource type β "azurerm_eventhub_namespace_network_rule_set".
@rohithegde @jackbackes just wanted to check what is the use case for having this as a separate resource? Is there a reason this can't be used inline within azurerm_eventhub_namespace
? Thanks
@rohithegde @jackbackes just wanted to check what is the use case for having this as a separate resource? Is there a reason this can't be used inline within
azurerm_eventhub_namespace
? Thanks
Having a separate resource allows for flexibility in deployment by decoupling the resource creation from vnet integration. Similar to how its done for other resources like Service bus, Storage account etc where we have one Terraform resource to provision the cloud resource and another to provision the vnet integration.
Thanks for your reply @rohithegde. Based on our guidelines here I would lean towards not creating a separate resource for this as it does not have it's own resource id. Is there any case where you are blocked from using the network rule set inline?
Thanks for your reply @rohithegde. Based on our guidelines here I would lean towards not creating a separate resource for this as it does not have it's own resource id. Is there any case where you are blocked from using the network rule set inline?
@catriona-m These guidelines came around 9 months after I created the ticket. I also see that the azurerm_servicebus_namespace_network_rule_set Terraform resource is being deprecated to align with the guidelines. In that case I will go ahead and close this ticket. Thanks for bringing my attention to this.
I'm going to lock this issue because it has been closed for 30 days β³. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Community Note
Description
Please add a resource to manage eventhub namespace's network rules separately from the event hub namespace resource in Terraform. This will be similar to
azurerm_servicebus_namespace_network_rule_set
but for event hub namespace instead. This feature exists in Az CLI too.New or Affected Resource(s)
Potential Terraform Configuration
References