variable "subscription_id" { description = "Subscription for the storage account and workspace." type = string } variable "location" { description = "Region of the networks. Flow logs must be written by the Network Watcher in the network's own region." type = string default = "eastus" } variable "vnet_ids" { description = "Virtual networks to log, by a short name of your choosing, all in var.location." type = map(string) } variable "retention_days" { description = "Days flow records are kept in storage, up to 365. They move to the cool tier after 30." type = number default = 365 validation { condition = var.retention_days >= 1 && var.retention_days <= 365 error_message = "Flow log retention can be 1 to 365 days." } } variable "analytics_interval_minutes" { description = "How often traffic analytics processes new records: 10 or 60." type = number default = 10 validation { condition = contains([10, 60], var.analytics_interval_minutes) error_message = "Traffic analytics runs every 10 or every 60 minutes." } } 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 = {} }