output "evidence_bucket" { description = "Where each instance's record and hash land." value = oci_objectstorage_bucket.evidence.name } output "status_topic" { description = "One message per step. Subscribe email, Slack, PagerDuty, or a webhook." value = oci_ons_notification_topic.status.id } output "verify" { description = "The drill, on a test instance you do not mind isolating." value = <<-EOT oci compute instance update --instance-id --freeform-tags '{"incident":"drill-1"}' --force # this replaces the instance's freeform tags; merge your own in oci os object list -ns ${data.oci_objectstorage_namespace.this.namespace} -bn ${oci_objectstorage_bucket.evidence.name} --prefix incidents/drill-1/ --query 'data[].name' # instance.json and its sha256 oci bv boot-volume-backup list --compartment-id ${var.compartment_ocid} --query "data[?\"freeform-tags\".incident=='drill-1'].\"display-name\"" oci compute instance get --instance-id --query 'data.{tags:"freeform-tags", attributes:"security-attributes", state:"lifecycle-state"}' # incident-status done; ${var.isolation == "zpr" ? "the quarantine attribute set" : "STOPPED"} ${var.isolation == "zpr" ? "ssh # times out" : "# The instance is stopped; start it only once the investigation allows."} oci os object delete -ns ${data.oci_objectstorage_namespace.this.namespace} -bn ${oci_objectstorage_bucket.evidence.name} --name incidents/drill-1///instance.json # refused: retention rule, even for someone allowed to delete The status topic shows recorded, detached (when the instance was in a pool), backup, isolated, done. Download incidents/drill-1 with an account that can read it, then run evidence-verify on it. EOT }