variable "tenancy_ocid" { description = "The tenancy. The dynamic group and its policies live here." type = string } variable "compartment_ocid" { description = "A compartment kept for forensics. Keep other workloads out, because the alerts read every flow log and DNS query in it." type = string } variable "region" { description = "Region identifier, such as us-ashburn-1." type = string } variable "evidence_bucket" { description = "The bucket evidence is read from, such as the evidence capture template's." type = string } variable "evidence_compartment_ocid" { description = "Compartment containing the evidence bucket, when it differs from the forensics compartment. Empty means the same one." type = string default = "" } variable "analyst_ssh_keys" { description = "Public keys of the analysts who may log in. The bastion injects nothing, so a key that is not here cannot get in." type = list(string) validation { condition = length(var.analyst_ssh_keys) > 0 error_message = "Give at least one public key." } } variable "analyst_cidrs" { description = "Addresses analysts open sessions from, such as your VPN egress. Everything else is refused by the bastion." type = list(string) validation { condition = length(var.analyst_cidrs) > 0 && !contains(var.analyst_cidrs, "0.0.0.0/0") error_message = "Name the addresses you connect from. 0.0.0.0/0 would let the bastion be reached from anywhere." } } variable "alert_emails" { description = "Addresses told when the workstation tries to reach something the rules refuse. Each must confirm the subscription once." type = list(string) validation { condition = length(var.alert_emails) > 0 error_message = "Give at least one address. An alarm nobody receives is not a control." } } variable "cidr" { description = "Address range for the isolated network. Pick one no other network uses, so a mistaken peering has nothing to match." type = string default = "10.252.0.0/24" } variable "shape" { description = "Instance shape. Secure Boot needs a shape that supports shielded instances." type = string default = "VM.Standard.E5.Flex" } variable "ocpus" { description = "Cores. Memory images take memory to analyse, and OCI allows up to 64 GB per core on E5." type = number default = 8 } variable "memory_in_gbs" { description = "Memory in GB. Size for the largest image you expect to open." type = number default = 128 } variable "boot_volume_size_in_gbs" { description = "Boot volume size. Evidence goes on volumes of its own, so this contains the tools." type = number default = 256 } variable "operating_system_version" { description = "Oracle Linux version for the platform image." type = string default = "9" } variable "kms_key_id" { description = "A Vault key for the boot volume, such as one from the key baseline template. Empty uses Oracle-managed encryption." type = string default = "" } variable "session_ttl_in_seconds" { description = "Longest a bastion session lasts. Oracle allows 30 to 180 minutes." type = number default = 10800 validation { condition = var.session_ttl_in_seconds >= 1800 && var.session_ttl_in_seconds <= 10800 error_message = "Oracle allows 1800 to 10800 seconds (30 to 180 minutes)." } } variable "log_retention_days" { description = "How long the flow logs are kept. Oracle takes 30-day steps, from 30 to 180." type = number default = 180 validation { condition = contains([30, 60, 90, 120, 150, 180], var.log_retention_days) error_message = "Oracle allows 30, 60, 90, 120, 150, or 180." } } variable "owner" { description = "Tag contract: accountable team." type = string default = "security-operations" } 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 = {} }