# Generated by tools/hardened.py from ../t1. Edit t1 or the script; this file is regenerated. variable "subscription_id" { description = "Subscription that contains the monitoring workspace, and whose Activity Log is watched." type = string } variable "role_scope" { description = "Where the accounts get Owner: a management group ID such as /providers/Microsoft.Management/managementGroups/ for the root, or a subscription ID. Removing an Owner assignment made at a management group is logged there, where this template does not watch." type = string } variable "watched_subscription_ids" { description = "Subscriptions whose Activity Log is watched for the accounts' actions and for changes to their Owner assignment there. Leave empty for the provider's subscription only. With Owner at a management group, list every subscription below it." type = list(string) default = [] } variable "accounts" { description = "Break-glass accounts by user principal name, each with its Entra object ID. Two, held by different people, means one lost key does not lock everyone out." type = map(string) validation { condition = length(var.accounts) >= 1 && length(var.accounts) <= 3 && alltrue([for k, v in var.accounts : can(regex("^[^@\\s]+@[^@\\s]+$", k)) && can(regex("^[0-9a-f-]{36}$", v))]) error_message = "Name one to three accounts, each a user principal name mapped to its object ID." } } variable "alert_emails" { description = "Addresses that receive the alerts. Prefer an on-call address over a person." type = list(string) validation { condition = length(distinct([for e in var.alert_emails : lower(e)])) == length(var.alert_emails) error_message = "Name each address once." } } variable "location" { description = "Region for the workspace and alert rules." type = string default = "eastus" } variable "retention_days" { description = "How long the workspace keeps sign-ins and activity." type = number default = 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 = {} }