From abb6fc3a0856429482997a008d4a45e1f78be930 Mon Sep 17 00:00:00 2001
From: Ash Davies <3853061+DrizzlyOwl@users.noreply.github.com>
Date: Wed, 6 Dec 2023 14:23:48 +0000
Subject: [PATCH] Disable default deployment of Event Hub
* Event Hub namespaces are only useful if we intend on exporting logs out of Azure
---
terraform/README.md | 2 +-
terraform/variables.tf | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/terraform/README.md b/terraform/README.md
index 5cc30b40d..444abd120 100644
--- a/terraform/README.md
+++ b/terraform/README.md
@@ -170,7 +170,7 @@ No resources.
| [enable\_cdn\_frontdoor](#input\_enable\_cdn\_frontdoor) | Enable Azure CDN Front Door. This will use the Container Apps endpoint as the origin. | `bool` | n/a | yes |
| [enable\_container\_registry](#input\_enable\_container\_registry) | Set to true to create a container registry | `bool` | n/a | yes |
| [enable\_dns\_zone](#input\_enable\_dns\_zone) | Conditionally create a DNS zone | `bool` | n/a | yes |
-| [enable\_event\_hub](#input\_enable\_event\_hub) | Send Azure Container App logs to an Event Hub sink | `bool` | n/a | yes |
+| [enable\_event\_hub](#input\_enable\_event\_hub) | Send Azure Container App logs to an Event Hub sink | `bool` | `false` | no |
| [enable\_logstash\_consumer](#input\_enable\_logstash\_consumer) | Create an Event Hub consumer group for Logstash | `bool` | `false` | no |
| [enable\_monitoring](#input\_enable\_monitoring) | Create an App Insights instance and notification group for the Container App | `bool` | n/a | yes |
| [environment](#input\_environment) | Environment name. Will be used along with `project_name` as a prefix for all resources. | `string` | n/a | yes |
diff --git a/terraform/variables.tf b/terraform/variables.tf
index 586bb8953..07afc1e9b 100644
--- a/terraform/variables.tf
+++ b/terraform/variables.tf
@@ -67,6 +67,7 @@ variable "container_max_replicas" {
variable "enable_event_hub" {
description = "Send Azure Container App logs to an Event Hub sink"
type = bool
+ default = false
}
variable "enable_logstash_consumer" {