Manages an EventHub Cluster
resource "azurerm_resource_group" "example" {
name = "example-resources"
location = "West Europe"
}
resource "azurerm_eventhub_cluster" "test" {
name = "example"
resource_group_name = azurerm_resource_group.example.name
location = azurerm_resource_group.example.location
sku_name = "Dedicated_1"
}
The following arguments are supported:
name
- (Required) Specifies the name of the EventHub Cluster resource. Changing this forces a new resource to be created.
resource_group_name
- (Required) The name of the resource group in which the EventHub Cluster exists. Changing this forces a new resource to be created.
location
- (Required) Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
sku_name
- (Required) The SKU name of the EventHub Cluster. The only supported value at this time is Dedicated_1
.
tags
- (Optional) A mapping of tags to assign to the resource.
In addition to the Arguments listed above - the following Attributes are exported:
id
- The EventHub Cluster ID.The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 30 minutes) Used when creating the EventHub Cluster.update
- (Defaults to 30 minutes) Used when updating the EventHub Cluster.read
- (Defaults to 5 minutes) Used when retrieving the EventHub Cluster.delete
- (Defaults to 300 minutes) Used when deleting the EventHub Cluster.EventHub Cluster's can be imported using the resource id
, e.g.
terraform import azurerm_eventhub_cluster.cluster1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.EventHub/clusters/cluster1