0
0
llucycodes42
The code defines an Azure Event Hub named "acceptanceTestEventHub" in the test namespace. The event hub is located in the resource group "test" and its two partitions have a combined count of 2. The event hub will store messages for 2 days before deleting them.
Shortcut: tf_azurerm_eventhub
resource "azurerm_eventhub" "${MyResource}" {
name = "acceptanceTestEventHub"
namespace_name = "\${azurerm_eventhub_namespace.test.name}"
location = "\${azurerm_resource_group.test.location}"
resource_group_name = "\${azurerm_resource_group.test.name}"
partition_count = 2
message_retention = 2
}