your architecture. But once you decide… you don’t have to decide again. Build once. Respond forever. Services Cost Third–party tools Compliance Risk appetite
→ Orchestrate Too many possible actions. → Send email → Execute Systems Manager runbook → Block IP (WAF / Security Group) → Disable IAM credentials Too many decisions. → Which team owns this? → What is the severity? → Auto remediation or manual approval? → Is this a false positive? Too much complexity. → Different services, different formats → Multiple teams involved → No single source of truth → Hard to scale consistently AWS Step Functions Define decisions. Not just actions.
Each IP should be checked automatically → Malicious IPs should trigger an incident → Safe IPs should be recorded → The process should run without manual effort → Results should be consistent and repeatable
resources → Production environments could require approval. → Teams should be notified automatically. → Quarantine actions should run without delay. → Different teams should receive different tickets. → Responses should be consistent and repeatable.
& control traffic 2. Trigger EventBridge captures the finding → Sends it to Step Functions 3. Decision Is it critical? Is it allowlisted? Is it production? From Simple to Real-World Flow