variable "subscription_id" { description = "Subscription that contains the cluster. Snapshots of a disk must be in the disk's own subscription, so the evidence goes here too." type = string } variable "cluster_name" { description = "Name of the AKS cluster the capture script works on. It must use Microsoft Entra ID integration." type = string } variable "cluster_resource_group" { description = "The cluster's own resource group. Its MC_ node resource group is looked up from the cluster." type = string } variable "responder_group_object_ids" { description = "Object IDs of the Microsoft Entra groups allowed to capture. Bind the same IDs to the incident-responder cluster role." type = list(string) validation { condition = length(var.responder_group_object_ids) > 0 && alltrue([for id in var.responder_group_object_ids : can(regex("^[0-9a-fA-F-]{36}$", id))]) error_message = "Give at least one group object ID, a GUID." } } variable "retention_days" { description = "How long no evidence blob can be changed or deleted. Set it to at least your legal hold period." type = number default = 365 validation { condition = var.retention_days >= 1 && var.retention_days <= 146000 error_message = "Azure allows 1 to 146000 days." } } variable "lock_retention" { description = "Lock the immutability policy. Nobody, including a subscription Owner, can then shorten or remove it, and the container and account cannot be deleted while they contain evidence. Cannot be undone." type = bool default = false } variable "allowed_ip_ranges" { description = "Addresses responders upload from, such as your office or VPN egress. When set, every other network is refused, so a responder outside the list cannot store evidence during an incident. Empty leaves the account reachable from any network, with Entra ID sign-in still required." type = list(string) default = [] } variable "owner" { description = "Tag contract: accountable team." type = string default = "security-operations" } variable "environment" { description = "Tag contract: environment." type = string default = "prod" } variable "extra_tags" { description = "Additional tags merged over the contract." type = map(string) default = {} } variable "log_analytics_workspace_id" { description = "A Log Analytics workspace to receive every read, write, and delete on the evidence account, with the caller's identity. Recommended for chain of custody. Empty skips it." type = string default = "" }