Use this data source to obtain information about an EventHub Namespace.
data "azurerm_eventhub_namespace" "test" {
name = "search-eventhubns"
resource_group_name = "search-service"
}
output "eventhub_namespace_id" {
value = "${data.azurerm_eventhub_namespace.test.id}"
}
name - (Required) The name of the EventHub Namespace. resource_group_name - (Required) The Name of the Resource Group where the EventHub Namespace exists. id - The ID of the EventHub Namespace.
location - The Azure location where the EventHub Namespace exists
sku - Defines which tier to use.
capacity - The Capacity / Throughput Units for a Standard SKU namespace.
auto_inflate_enabled - Is Auto Inflate enabled for the EventHub Namespace?
maximum_throughput_units - Specifies the maximum number of throughput units when Auto Inflate is Enabled.
tags - A mapping of tags to assign to the EventHub Namespace.
The following attributes are exported only if there is an authorization rule named RootManageSharedAccessKey which is created automatically by Azure.
default_primary_connection_string - The primary connection string for the authorization rule RootManageSharedAccessKey.
default_secondary_connection_string - The secondary connection string for the authorization rule RootManageSharedAccessKey.
default_primary_key - The primary access key for the authorization rule RootManageSharedAccessKey.
default_secondary_key - The secondary access key for the authorization rule RootManageSharedAccessKey.
© 2018 HashiCorpLicensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/azurerm/d/eventhub_namespace.html