Creates Storage Account and Event Hubs to be used for diagnostics and operations logs.
Reference the module to a specific version (recommended):
module "diagnostics_logging" {
source = "aztfmod/caf-diagnostics-logging/azurerm"
version = "0.x.y"
resource_group_name = var.rg
prefix = var.prefix
location = var.location
tags = var.tags
}
(Required) Name of the resource group to deploy the operations log.
variable "resource_group_name" {
description = "(Required) Name of the resource group to deploy the operations log."
}
Example
virtual_network_rg = "my-vnet"
(Required) Define the region where the resource groups will be created
variable "location" {
description = "(Required) Define the region where the resource groups will be created"
type = string
}
Example
location = "southeastasia"
(Optional) You can use a prefix to add to the list of resource groups you want to create
variable "prefix" {
description = "(Optional) You can use a prefix to add to the list of resource groups you want to create"
}
Example
locals {
prefix = "${random_string.prefix.result}-"
}
resource "random_string" "prefix" {
length = 4
upper = false
special = false
}
(Required) Map of tags for the deployment
variable "tags" {
description = "(Required) map of tags for the deployment"
}
Example
tags = {
environment = "DEV"
owner = "Arnaud"
deploymentType = "Terraform"
}
(Optional) Determine to deploy Event Hub for the configuration
variable "enable_event_hub" {
description = "(Optional) Determine to deploy Event Hub for the configuration"
default = true
}
Example
enable_event_hub = false
(Required) Naming convention to be used.
variable "convention" {
description = "(Required) Naming convention used"
}
Example
convention = "cafclassic"
Name | Type | Description |
---|---|---|
diagnostics_map | map(strings) | Contains the diagnostics details as follow: - "diags_sa"- Storage account resource ID - "eh_name"- Event Hub Name - "eh_id" - Event Hub Resource ID |