
Your First CloudWatch Investigation: A Practitioner's Walkthrough
Amazon CloudWatch investigations became generally available in June 2025 at no additional cost. It's an AI agent that scans your telemetry during an incident, surfaces related signals, proposes root-cause hypotheses, and suggests remediation—shrinking the time you'd otherwise spend juggling metrics, logs, and deploy history.
If you run production workloads on AWS, you already know the shape of a bad night: an alarm fires, a dashboard turns red, and you start the familiar tab-juggling ritual—metrics here, logs there, the deploy pipeline in a third window—while you try to reconstruct what changed and why. Amazon CloudWatch investigations is AWS's attempt to compress that ritual. It's an AI agent that scans your telemetry, surfaces related signals, proposes root-cause hypotheses, and suggests remediation, with the goal of cutting mean time to resolution (MTTR).
It went generally available in June 2025 and, notably, carries no additional cost. This post walks you through running your first investigation, from the zero-setup path you can try in the next five minutes to the account-level configuration that makes the feature genuinely useful.
What it actually does
Before you start clicking, it helps to know what the agent produces. An investigation gives you three things: AI-generated observations (it fans out from your starting signal to find related telemetry), root-cause hypotheses (candidate explanations, with causal diagrams when several resources are involved), and natural-language explanations of what it found and what to do next.
Mentally, treat it like a junior on-call engineer who has already read every metric, log group, and recent deployment before you joined the call. It won't always be right, but it arrives with context and a starting theory instead of a blank page. Your job shifts from gathering evidence to evaluating a hypothesis—usually the faster half of the work.
Path 1: The zero-config investigation (start here)
You do not need to configure anything to try this. AWS calls these ephemeral investigations, and they're deliberately low-commitment: session-based, read-only, and automatically deleted after 24 hours. Nothing persists, nothing is shared, and the agent can't change your environment.
Here's the flow:
- Navigate to any supported telemetry source that's showing a problem—a CloudWatch metric with an unusual pattern, a CloudWatch alarm in
ALARMstate, or a Lambda function's monitoring tab.
- In the Operational troubleshooting section, choose the Investigate tab, then Start investigation.
- Watch the agent analyze your telemetry and generate observations and root-cause hypotheses.
That's the entire loop. It's the fastest way to build intuition for whether the agent's reasoning is useful on your workloads before you invest in setup. One caveat worth knowing up front: without an investigation group configured, the agent works from a limited set of commonly used telemetry sources. The hypotheses get materially better once you complete Path 2.
Path 2: Set up an investigation group (the one-time upgrade)
To unlock the enhanced experience—cross-account data, chat notifications, deeper service integrations, and persistent investigations—you create an investigation group. This is a one-time, account-level setup task. You get exactly one investigation group per account, and every investigation in the account belongs to it.
Permissions you'll need
To create the group, you must be signed in as an IAM principal with either the
AIOpsConsoleAdminPolicy or AdministratorAccess managed policy. If you want the console to auto-create the service role for you (the recommended path), your principal also needs iam:CreateRole , iam:AttachRolePolicy , and iam:PutRolePolicy . If you operate under least privilege and your day-to-day role lacks these, this is the step to hand to whoever owns IAM in your org.The steps
- Open the CloudWatch console and choose AI Operations → Configuration in the left nav.
- Choose Configure for this account.
- Set the retention period for investigations and their data. Think of this the way you'd think about log retention—longer helps postmortems, but it's data you're now responsible for.
- (Optional) Under Customize encryption settings, supply a customer-managed KMS key. If you skip this, AWS encrypts investigation data with an AWS-owned key. Regulated environments will usually want the CMK.
- Choose how the agent gets permissions to read your resources. The recommended option is Auto-create a new role with default investigation permissions, which attaches the AWS managed policies for AI Operations.
- Choose Create investigation group.
If you'd rather bring your own role instead of auto-creating one, make sure its trust policy names
aiops.amazonaws.com as the service principal, and add a Condition block scoping aws:SourceAccount to your account ID to avoid a confused-deputy problem:{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Principal": { "Service": "aiops.amazonaws.com" }, "Action": "sts:AssumeRole", "Condition": { "StringEquals": { "aws:SourceAccount": "123456789012" }, "ArnLike": { "aws:SourceArn": "arn:aws:aiops:us-east-1:123456789012:*" } } } ]}
One operational note before you commit: CloudWatch investigations uses cross-Region inference to distribute model traffic across AWS Regions. If you have data-residency constraints, read the security documentation and clear this with whoever owns your compliance posture first.
Path 3: Run a real investigation
With a group in place, you have three ways to kick one off—pick the one that matches how the problem reached you.
From a metric or alarm. On the metric or alarm page, use the Investigate button (or the vertical ellipsis → Investigate → Start a new investigation). Give it a title, add any notes, and check the Approximate impact start time—the agent recommends a timestamp from your telemetry, but if you know the real blast radius started earlier, correct it. This one field meaningfully shapes the search window, so it's worth getting right. Choose Start investigation, then Open in full page to work in the larger view.
From Amazon Q chat. You can just ask, in plain language: "Why is my Lambda function slow today?" The agent may ask follow-up questions, run a health check, and then offer to open a full investigation. This is the natural entry point when you have a symptom but no specific metric to point at yet.
Automatically, from an alarm action. This is the one to wire up for anything that pages you. When you create or edit a metric alarm or a composite alarm, you can configure it to automatically start an investigation when it enters
ALARM . By the time the page hits your phone, the agent has already begun fanning out through your telemetry—so you open the investigation to a working theory instead of an empty console. For an SRE team, this is where the MTTR savings actually compound.Make the hypotheses smarter: enhanced integrations
The agent is only as good as the signals it can see. Under the Optional configuration tab of your investigation group, turn on the integrations that match your stack:
- CloudTrail change events — arguably the highest-value toggle. Most incidents trace back to a change, and giving the agent access to CloudTrail event history lets it correlate your symptom with recent deploys and config edits.
- X-Ray and Application Signals — supply request topology and service-health context so the agent can reason about dependencies rather than isolated metrics. These require the
AIOpsAssistantPolicyto be granted.
- Tags for application boundary detection — enter your custom application tag keys. When the agent can't infer a hard dependency (say, that an ECS service talks to a specific RDS instance), tags narrow the search space so it doesn't wander. You don't need to add myApplications or CloudFormation tags—those are detected automatically.
- Amazon EKS — set up cluster access entries so the agent can pull directly from your cluster.
- RDS Database Insights (Advanced mode) — enables database-specific performance analysis in investigations.
- Chat integration (Slack or Microsoft Teams) — route investigation notifications to the channel your team already lives in, via an SNS topic. Configure the chat client first, then point the group at the topic.
A reasonable rollout order: enable CloudTrail first, then whichever of X-Ray/Application Signals you already run, then chat. You'll feel the difference in hypothesis quality most from those three.
Gotchas worth knowing
Zero-config investigations vanish after 24 hours—fine for a quick look, useless for a postmortem, so escalate to a group before you need to reference findings later. The agent is read-only and won't remediate for you; treat its suggestions as leads to verify, not commands to run. Hypothesis quality tracks telemetry coverage directly, so a thinly instrumented service will get thin answers—if the output feels shallow, the fix is usually more integrations, not less trust. And because there's one group per account, its retention, encryption, and cross-account settings are shared org-wide decisions—coordinate them rather than setting them solo.
Where to start
Don't over-plan this. Open a service that's been flaky lately, run a zero-config investigation, and judge the output for yourself. If it earns its keep, spend the twenty minutes to create an investigation group, wire CloudTrail and an auto-start alarm into your noisiest service, and let the next page arrive with a head start. At no additional cost, the experiment is close to free—the only thing it spends is the time you'd otherwise lose reconstructing context by hand.
Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article