-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
27 lines (25 loc) · 1 KB
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
resource "azurerm_eventhub_namespace" "this" {
name = var.event_hub_namespace.name
location = azurerm_resource_group.this.location
resource_group_name = var.resource_group.name
sku = var.event_hub_namespace.config.sku
capacity = var.event_hub_namespace.config.capacity
tags = merge(
var.tags,
{
"Resource Type" = "Event Hub"
}
)
minimum_tls_version = "1.2"
maximum_throughput_units = var.event_hub_namespace.config.maximum_throughput_units
auto_inflate_enabled = var.event_hub_namespace.config.auto_inflate_enabled
public_network_access_enabled = false
## Resources supporting both SystemAssigned and UserAssigned
dynamic "identity" {
for_each = local.managed_identities.system_assigned_user_assigned == null ? {} : local.managed_identities.system_assigned_user_assigned
content {
type = identity.value.type
identity_ids = identity.value.user_assigned_resource_ids
}
}
}