Use this data source to access information about an existing Event Hubs Consumer Group within an Event Hub.
data "azurerm_eventhub_consumer_group" "test" {
name = azurerm_eventhub_consumer_group.test.name
namespace_name = azurerm_eventhub_namespace.test.name
eventhub_name = azurerm_eventhub.test.name
resource_group_name = azurerm_resource_group.test.name
}
name
- Specifies the name of the EventHub Consumer Group resource.
namespace_name
- Specifies the name of the grandparent EventHub Namespace.
eventhub_name
- Specifies the name of the EventHub.
resource_group_name
- The name of the resource group in which the EventHub Consumer Group's grandparent Namespace exists.
The following attributes are exported:
id
- The EventHub Consumer Group ID.
user_metadata
- Specifies the user metadata.
The timeouts
block allows you to specify timeouts for certain actions:
read
- (Defaults to 5 minutes) Used when retrieving the EventHub Consumer Group.