AWS Builder Center

Start an incident-response agent with read-only triage

A practical AWS incident-response pattern: begin with read-only triage, require human approval before bounded remediation, and make retries safe.

An incident-response agent needs two different capabilities: diagnosis and remediation. I would ship diagnosis first.
Give the agent read-only tools for CloudWatch alarms, logs, and recent deployment metadata. Let it select from a small set of predefined Step Functions workflows, then return the evidence and a proposed action. Avoid exposing restart or rollback tools in the same tool set on day one.
When you add remediation, put a human-approval state before the change. Step Functions can pause a workflow until a person responds. Make the approval name the affected service, exact action, and evidence being approved. Keep the final action bounded, and record its result.
Retries need a design too. Standard Workflows can retry states when configured; Express Workflows use at-least-once execution, so downstream side effects should be idempotent. Pass a request or execution key into the remediation task so repeated attempts cannot restart or roll back twice.
If you expose tools through AgentCore Gateway, configure gateway and tool-level authorization, then enforce least privilege and validate inputs at the target.
Before enabling changes, test three paths: approval, rejection, and a duplicate or retried request. Starting read-only lets the agent help immediately while keeping production changes under explicit control.
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article