Skip to content

Commit

Permalink
fix: remove subid from eh namespace (#22)
Browse files Browse the repository at this point in the history
* remove subid from eh namespace

* remove default values for values that we get as input

* add back default for resource group and diagnostic settings
  • Loading branch information
matteopasa authored Jan 3, 2024
1 parent 7e8c8bd commit 3eed38a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition 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}-${var.subscription_id}"
name = var.event_hub_namespace_name
location = azurerm_resource_group.sysdig_resource_group.location
resource_group_name = azurerm_resource_group.sysdig_resource_group.name
sku = var.namespace_sku
Expand Down
1 change: 0 additions & 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,6 @@ variable "namespace_sku" {
variable "event_hub_namespace_name" {
type = string
description = "Name of the Event Hub Namespace to be created"
default = "sysdig"
}

variable "event_hub_name" {
Expand Down

0 comments on commit 3eed38a

Please sign in to comment.