Skip to content

Commit

Permalink
ensure event hub namespace uniqueness (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
matteopasa authored Dec 12, 2023
1 parent b80454e commit e3dc4d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/services/event-hub-data-source/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ resource "azurerm_resource_group" "sysdig_resource_group" {
# Create an Event Hub Namespace for Sysdig
#---------------------------------------------------------------------------------------------
resource "azurerm_eventhub_namespace" "sysdig_event_hub_namespace" {
name = var.event_hub_namespace_name
name = "${var.event_hub_namespace_name}-${var.subscription_id}"
location = azurerm_resource_group.sysdig_resource_group.location
resource_group_name = azurerm_resource_group.sysdig_resource_group.name
sku = var.namespace_sku
Expand Down
2 changes: 1 addition & 1 deletion modules/services/event-hub-data-source/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ variable "namespace_sku" {
variable "event_hub_namespace_name" {
type = string
description = "Name of the Event Hub Namespace to be created"
default = "sysdig-event-hub-namespace"
default = "sysdig"
}

variable "event_hub_name" {
Expand Down

0 comments on commit e3dc4d4

Please sign in to comment.