variable "compartment_ocid" { description = "The cluster's compartment. Its audit events are there, and so go the connectors, the alarms, and the archive." type = string } variable "region" { description = "Region identifier of the cluster, such as us-ashburn-1." type = string } variable "alert_emails" { description = "Addresses that receive the alarms." type = list(string) validation { condition = length(var.alert_emails) > 0 error_message = "Name at least one address, or the alarms have nowhere to go." } } variable "archive_retention_days" { description = "How long a copy of every OKE API server audit event is kept in a bucket whose retention rule refuses deletion and overwriting, beyond the Audit service's own 365 days. 0 keeps no copy." type = number default = 730 validation { condition = var.archive_retention_days == 0 || var.archive_retention_days >= 365 error_message = "Keep the copy for 365 days or more, or set 0 for none; a shorter copy adds nothing to the Audit service's own year." } } variable "lock_at" { description = "When to lock the archive's retention rule, as an RFC 3339 time at least 14 days ahead, such as 2026-12-01T00:00:00Z. Until then the rule can still be edited or removed by anyone who can manage the bucket. After it, never, and the bucket can only be deleted once empty. Leave empty to keep the rule unlocked." type = string default = "" } variable "siem_stream_ocid" { description = "A stream that feeds your SIEM, such as the one the SIEM ingest template builds. Every OKE API server audit event is also sent there. Leave empty to skip." type = string default = "" validation { condition = var.siem_stream_ocid == "" || startswith(var.siem_stream_ocid, "ocid1.stream.") error_message = "Give the stream's OCID (ocid1.stream...), or leave it empty." } } variable "siem_stream_compartment_ocid" { description = "That stream's compartment, where the policy letting the connector push to it must live. Empty means the cluster's compartment." type = string default = "" } 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 freeform tags merged over the contract." type = map(string) default = {} }