https://github.com/ukho/tfmodule-azure-event-hub
https://github.com/ukho/tfmodule-azure-event-hub
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ukho/tfmodule-azure-event-hub
- Owner: UKHO
- License: mit
- Created: 2023-05-22T12:14:46.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-07-24T15:35:17.000Z (about 1 year ago)
- Last Synced: 2025-07-24T16:58:37.763Z (about 1 year ago)
- Language: HCL
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Terraform Module: for Azure Event Hub
use module resource to reference this service. This module does not create the namespace
## Required Resources
- `Resource Group` exists or is created external to the module.
- `Provider` must be created external to the module.
## Usage
```terraform
variable "servicename" {
type = string
description = "the service name"
}
variable "deploy_environment" {
type = string
description = "deployment environment"
}
variable "role" {
type = string
description = "it's role within the service"
}
variable "resource_group_name" {
type = string
}
variable "resource_group_location" {
type = string
}
variable "eventhub_namespace_id" {
type = string
description = "the event hub namespace id"
}
variable "eventhub_namespace_name" {
type = string
description = "the event hub namespace name"
}
variable "sku" {
description = "Basic, Standard or Premium, services and options will vary depending on level, check docs for desires. Default to standard"
type = string
default = "Standard"
}
variable "partition_count" {
default = 2
}
variable "message_retention" {
description = "depends on sku, Basic cannot be higher than 1"
default = 7
}
module "eventhub" {
source = "github.com/ukho/tfmodule-azure-event-hub?ref=0.8.1"
providers = {
azurerm.src = azurerm.alias
}
eventhub_namespace_id = var.eventhub_namespace_id
eventhub_namespace_name = var.eventhub_namespace_name
servicename = var.servicename
deploy_environment = var.deploy_environment
role = var.role
resource_group_name = var.resource_group_name
resource_group_location = var.resource_group_location
}
```
## Outputs
This module outputs 2 values, one is `eventhub_send_primarykey` and the other is `event_hub_name`