# Generated by tools/hardened.py from ../t1. Edit t1 or the script; this file is regenerated. variable "subscription_id" { description = "Subscription for the workspace and alerts, as a GUID." type = string validation { condition = can(regex("^[0-9a-fA-F-]{36}$", var.subscription_id)) error_message = "Give the subscription ID as a GUID." } } variable "resource_group_name" { description = "An existing resource group for the workspace, alerts, and saved queries. Keep it apart from workloads." type = string } variable "alert_emails" { description = "Addresses that receive the alerts. Prefer an on-call address over a person." type = list(string) validation { condition = length(var.alert_emails) > 0 error_message = "Name at least one address, or the alerts have nowhere to go." } } variable "expected_admins" { description = "UPNs of admins or service accounts that change mailbox permissions, mail flow rules, and audit settings as part of their job. Their changes do not alert, and the workspace still records them. Forwarding changes alert for everyone. Every entry is a blind spot, so keep it short." type = list(string) default = [] } variable "bulk_download_files" { description = "Distinct SharePoint or OneDrive files one user may download or sync in an hour before the alert fires. Set it from a week of normal use; the default is a starting point." type = number default = 1000 validation { condition = var.bulk_download_files > 0 error_message = "The threshold must be above zero." } } variable "silence_hours" { description = "Hours with no Microsoft 365 records before the silence alert fires. A small tenant may be quiet over a weekend night." type = number default = 12 validation { condition = var.silence_hours >= 2 && var.silence_hours <= 47 error_message = "Use between two and 47 hours." } } variable "retention_days" { description = "How long the workspace keeps the audit records." type = number default = 365 validation { condition = var.retention_days >= 90 && var.retention_days <= 730 error_message = "Keep at least 90 days, and Azure allows up to 730." } } variable "owner" { description = "Tag contract: accountable team." type = string default = "security-engineering" } variable "environment" { description = "Tag contract: environment." type = string default = "prod" } variable "extra_tags" { description = "Additional tags merged over the contract." type = map(string) default = {} }