bashintermediate

Incident Response Runbook

DevOps practice: incident-response-runbook

bash
#!/usr/bin/env bash
set -euo pipefail

echo "Running workflow: incident-response-runbook"
mkdir -p .ops/logs
printf '%s %s\n' "$(date -u +%FT%TZ)" "incident-response-runbook" >> .ops/logs/run.log
cat .ops/logs/run.log | tail -n 5

Use Cases

  • infrastructure management
  • automation

Tags

Related Snippets

Similar patterns you can reuse in the same workflow.