infrastructure/terraform/modules/applicationinsights/variables.tf (30 lines of code) (raw):
# General variables
variable "location" {
description = "Specifies the location for the resource group and the log analytics workspace"
type = string
sensitive = false
}
variable "resource_group_name" {
description = "Specifies the name of the resource group for the log analytics workspace"
type = string
sensitive = false
}
variable "tags" {
description = "Specifies the tags that you want to apply to all resources."
type = map(string)
sensitive = false
default = {}
}
variable "application_insights_name" {
description = "Specifies the name of the log analytics workspace"
type = string
sensitive = false
}
# Monitoring variables
variable "log_analytics_workspace_id" {
description = "Specifies the resource ID of the log analytics workspace used for the stamp"
type = string
sensitive = false
validation {
condition = length(split("/", var.log_analytics_workspace_id)) == 9
error_message = "Please specify a valid resource ID."
}
}