# Generated by tools/hardened.py from ../t1. Edit t1 or the script; this file is regenerated. variable "subscription_id" { description = "Subscription the resources go in, and whose activity log is copied. The provider has required it since version 4." type = string } variable "name" { description = "Base name. Storage account name is derived from it and stripped to 24 lowercase alphanumeric characters." type = string default = "auditlogimmutable" } variable "location" { description = "Azure region." type = string default = "eastus" } variable "retention_days" { description = "Immutability period. Applies to every blob from the moment it is written." type = number default = 400 validation { condition = var.retention_days >= 90 && var.retention_days <= 146000 error_message = "retention_days must be between 90 and 146000." } } variable "lock_policy" { description = "Lock the immutability policy. A locked policy cannot be shortened or removed by anyone, including a subscription Owner, and the period can only be extended. Leave false until the retention is agreed, because this is not reversible." type = bool default = false } variable "log_analytics" { description = "Also send activity logs to a Log Analytics workspace so KQL and alert rules can run against them." type = bool default = true } variable "log_analytics_retention_days" { description = "Workspace retention. The blob copy is the system of record, so this is the alerting window." type = number default = 90 } variable "allowed_ip_ranges" { description = "CIDRs allowed to reach the storage account. Everything else is denied. An empty list denies all public network access." type = list(string) default = [] } variable "log_categories" { description = "Activity log categories to deliver." type = list(string) default = [ "Administrative", "Security", "ServiceHealth", "Alert", "Policy", "Autoscale", "ResourceHealth", "Recommendation", ] } 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 = {} }