output "bucket" { description = "Where evidence goes." value = aws_s3_bucket.evidence.bucket } output "responder_role_arn" { description = "The role capture.sh uses for the cluster." value = aws_iam_role.responder.arn } output "capture" { description = "Take the responder role, set these, then run capture.sh from the Standard (t1) folder." value = <<-EOT # Every step runs as the responder role, so take it first: ${aws_iam_role.responder.arn} export CLUSTER=${var.cluster} EVIDENCE_BUCKET=${aws_s3_bucket.evidence.bucket} ./capture.sh EOT } output "verify" { description = "Checks, on a test pod you do not mind isolating." value = <<-EOT Run the capture command above against a test pod, then: aws s3 ls s3://${aws_s3_bucket.evidence.bucket}// --recursive # pod.json, images.tsv, logs, events, capture.log, each with a .sha256 aws ec2 describe-snapshots --owner-ids self --filters Name=tag:incident,Values= aws ec2 describe-instance-attribute --instance-id --attribute disableApiTermination # true kubectl get pod -n --show-labels # quarantine=true Download the folder with an account that can read it, then run evidence-verify on it. EOT }