
Build a Daily Application Health Report with AWS DevOps Agent Custom Agents and Skills
A hands-on guide: an application registry, a skill, a custom agent and one Lambda function that turn AWS DevOps Agent into a scheduled, per-application health reporter.
Global cloud architect in healthcare, based in Australia
AWS DevOps Agent is built to answer "why did this break?" I wanted it to answer a different question every morning: "how is every application doing, and where should I look first?"
CloudWatch already tells you whether an instance, queue or database is up. It doesn't tell you whether an application is healthy, meaning all of its resources together. In this guide I'll walk through how I built that view: a daily report that scores each application on availability, reliability and security, then publishes the result as JSON and a self-contained HTML dashboard in S3.
Everything except the publishing Lambda is markdown. You can adapt it to any AWS estate that tags resources with an
Application tag.

What you'll build
┌──────────────────────────────────────────────────┐ schedule / │ AWS DevOps Agent · Agent Space │ "Run now" ─────▶ │ │ │ Custom agent: application-health-reporter │ │ ├─ system prompt (AGENT.md) │ │ ├─ tool: use_aws (read-only) │ │ ├─ skill: aws-app-availability-... │ │ │ ├─ SKILL.md │ │ │ ├─ applications.md (registry) │ │ │ └─ references/*.md (per service) │ │ └─ memory store │ └─────────────┬────────────────────────────────────┘ │ reads ┌────────────────────────┼─────────────────────────┐ ▼ ▼ ▼ Workload account(s) Network account (more accounts later) EC2, ECS, RDS, Lambda… VPC, DX, Flow Logs
Run finishes ──▶ EventBridge (source: aws.aidevops) ──▶ Lambda ──▶ S3: report.json + dashboard.html (dated + latest/)There are five components:
Component | Format | Purpose |
|---|---|---|
Application registry | applications.md | Which apps to assess, plus each app's exceptions |
Skill | SKILL.md + references/*.md | How to discover resources, which checks to run, how to score |
Custom agent | System prompt | Lookback windows, output contract (JSON + HTML), ordering |
Publisher | Python Lambda | Pulls the agent's final answer and writes it to S3 |
Deploy script | Bash | Zips the skill and pushes it with the AWS CLI |
Prerequisites
- An AWS DevOps Agent Agent Space, with a primary account and any secondary accounts connected.
- An
Applicationtag on your CloudFormation/CDK stacks or resources. This is the most important prerequisite: the report is only as good as your tagging.
- The CloudWatch agent on EC2 instances if you want disk-capacity checks. Without it, the agent can't see filesystem usage.
- An S3 bucket for the reports, and permission to deploy a Lambda function and an EventBridge rule.
- A recent AWS CLI / boto3 that includes the
devops-agentclient.
Step 1: Set up the Agent Space and connect the right accounts

Under Capabilities, add your primary account and any secondary accounts. Each account needs an IAM role that trusts the Agent Space. Once they're connected, DevOps Agent discovers resources and builds a topology for you, so you don't maintain an inventory.
Two decisions matter here:
1. Connect the account that holds your shared data, not just the one that holds your workloads. In our landing zone, a central network account owns the VPC, subnets, prefix lists and Direct Connect, and shares them to workload accounts through AWS RAM. RAM shares the configuration, not the data. A workload account can describe the shared VPC, but VPC Flow Log records land in a CloudWatch Logs log group in the network account. If you connect only the workload account, every flow-log check silently comes back empty. I connected both.
2. Leave the actions role unconfigured. This is a reporting workload, so the agent only needs read access. With no actions role, it can recommend fixes but can't make them.
Step 2: Build the application registry
The registry is the single source of truth for scope. It's a markdown table, and its exceptions are columns, not prose.
# List of applications
| Application | AWS Region | Environment | Criticality | Backup Exempt | HA Exempt | Notes ||----------------|----------------|-------------|-------------|---------------|-----------|-------|| Ingestion-Srv | ap-southeast-2 | Production | Tier 0 | Yes | Yes | || Imaging-Service| ap-southeast-2 | Production | Tier 0 | No | Yes | || Data-Service | ap-southeast-2 | Production | Tier 1 | Yes | No | || Finance-Service| ap-southeast-2 | Production | Tier 2 | Yes | Yes | |Every column needs a legend under the table. Without one, the agent will make up its own meaning. Here is the HA Exempt legend as an example:
**HA Exempt legend:**- **Yes** — this application's EC2 instance(s) run vendor-managed software and are deployed without an ASG by design. The skill's no-ASG Degraded cap does not apply; report it as an accepted structural risk in Notes instead rather than recommending an ASG.- **No** / blank — standard redundancy check applies; a single instance with no ASG caps Availability at Degraded.What each column does:
Column | Effect on the run |
|---|---|
AWS Region | Every CLI/API call for the app is scoped with --region . Never rely on a default region. |
Environment | Disambiguates name-based matches ( -prod , -staging ). |
Criticality | Tier 0/1/2. Ordering only. It never changes the scoring maths. |
Backup Exempt | Skips the EBS snapshot-recency check when the vendor owns backups. |
HA Exempt | Skips the "single instance, no ASG → Degraded" cap for vendor appliances. |
Without
HA Exempt , a vendor-managed system that can't run in an Auto Scaling group shows Watch every day. That's noise, and noise trains people to ignore the report.Add aliases for messy tag values
Real tags drift. Ours had
VS1 , VSOne , Voice-Service and Voice One , which all mean the same app. List them explicitly rather than letting the model guess:## Aliases
| Application | Alias tags ||----------------|--------------------------------------------------|| Voice-Service | `VS1`, `VSOne`, `Voice`, `Voice One` || Data-Service | `data`, `Datalayer s3`, `DMS` |Add a "Common Misconceptions" table
LLMs read resource names using general knowledge. In our environment,
Imaging MDB is an Imaging master database server on EC2, not MongoDB. Left alone, the agent went looking for DocumentDB metrics. This table fixed it:## Common Misconceptions
| Name / fragment | Application | Does NOT mean | Actually is | How to assess ||-----------------|-------------|---------------------|---------------------------------------|----------------------------|| `MDB` | Imaging | MongoDB, MS Access | Imaging master database server (EC2) | EC2 + EBS checks only || `MOD` | Ingestion | Module, Min. of Def.| Imaging modality server (receives DICOM) | EC2 + EBS; watch capacity |Step 3: Write the skill

A DevOps Agent skill is a folder with a
SKILL.md at the root. Mine looks like this:aws-app-availability-reliability/├── SKILL.md├── applications.md└── references/ ├── ec2.md ebs.md ecs.md lambda.md rds-alb.md ├── s3.md sqs.md sns.md dynamodb.md step-functions.md ├── athena.md bedrock.md secrets-manager.md ├── vpc-networking.md # always run ├── security.md # always run └── incident-history.md # source of incidents / downtime

3a. The frontmatter is the trigger
name and description are required. The description decides when the skill loads, so write it for the agent. List the resource types it covers and the phrases that should trigger it:---name: aws-app-availability-reliabilitydescription: Assess availability, reliability, and security of AWS-hosted applications. Reads the app list (region, environment, criticality) from applications.md, discovers each app's AWS resources (EC2, ECS, Lambda, RDS, ELB/ALB, S3, DynamoDB, SQS, SNS, Step Functions, Bedrock, Secrets Manager, Athena, EBS), and scores availability/reliability/security using CloudWatch metrics, AWS Health events, resource health checks, VPC networking, and security checks. Use whenever asked to check, audit, assess, score, or report on app uptime, health, availability, reliability, security posture, SLA compliance, disk space, IOPS, network connectivity, or "is X app healthy/down/degraded/secure" for AWS workloads, even without those exact words.---3b. A four-step workflow
The body of
SKILL.md is a short, ordered workflow:- Load the application list: read
applications.md. If Region, Environment or Criticality is blank, ask; don't guess.
- Discover resources, in strict order of precedence:
- CloudFormation/CDK stack tag
Application=<name or alias>
- Resource tag
Application=<name or alias>(for resources outside a stack)
- Naming convention only as a last resort, and flagged in
notesas "matched by name only"
- Apply the criteria for each resource type found, reading only the matching
references/*.md.
- Score and report using the deterministic tables.
Spell out the negatives too. These lines made the biggest difference in my testing:
- Never infer a resource's technology (database engine, OS, product) from its name alone — determine it from the resource's actual type and configuration.- If a name suggests a technology that no discovered resource actually uses, do not report checks or findings for that technology.- If an application can't be confidently mapped to any resource, mark it `unmapped` — never silently omit it.Some checks run for every application, whatever its resource type, because the apps share one VPC and one Direct Connect path:
- VPC networking: Direct Connect / BGP, VPC endpoints, route tables, SG/NACL rules, flow-log REJECTs
- Security: open security groups, broad IAM, ECR CVEs, encryption, S3 public access
- EBS: for any app with EC2 instances or ECS nodes
3c. Make the tiers deterministic
Give each tier hard thresholds. "Is it healthy?" is a vibe; "uptime ≥ 99.9% and all EBS volumes < 90% full" is a rule. These are trimmed versions of mine:
**Available** — uptime ≥ 99.9%, all health checks passing, no open AWS Health events, multi-AZ or ≥ 2 healthy instances/tasks, EBS < 90% full.**Degraded** — uptime 99.0–99.9%, OR single-AZ/no redundancy (unless HA Exempt), OR EBS 90–94% full, OR non-critical AWS Health event.**Unavailable** — uptime < 99.0%, OR stopped/failing health checks, OR EBS ≥ 95% full, OR default route blackholed.
**Reliable** — error rate < 0.1%, 0–1 alarm state changes, auto-recovery, snapshots < 24h, EBS < 80% of IOPS/throughput, queue length ≤ 1, CloudWatch agent installed.**At Risk** — error rate 0.1–1%, 2–5 alarm changes, EBS 80–95% IOPS, CloudWatch agent absent, stale snapshots …**Unreliable** — error rate > 1%, > 5 alarm flaps, EBS ≥ 95% IOPS, no snapshots …Then combine the tiers with a lookup table rather than asking the model to weigh them:
Availability | Reliability | Overall |
|---|---|---|
Available | Reliable | Healthy |
Available | At Risk | Watch |
Degraded | Reliable / At Risk | Watch |
Any | Unreliable | At Risk |
Unavailable | Any | Critical |
Two roll-up rules:
- Worst component wins. An app made of an ALB, ECS service and RDS instance gets the lowest tier of the three, and the evidence names the component responsible.
- Security overlay. Security is scored separately. A Vulnerable score caps Overall at At Risk, even if the app is up and stable.
Step 4: Write one reference file per service
The reference files are where the real checks live. Keeping one file per service means the agent only loads
lambda.md when it actually finds a Lambda function, which keeps the context small.

Each file follows the same shape: Discovery → Availability signals → Reliability signals, with the exact CLI commands and metrics to use. Here's part of
ebs.md , the check that would have caught our original Imaging-Service incident (an EBS volume silently pinned at its IOPS limit):## Discovery
```bashaws ec2 describe-instances --instance-ids <instance-id> \ --query "Reservations[].Instances[].BlockDeviceMappings[].[DeviceName, Ebs.VolumeId]"aws ec2 describe-volumes --volume-ids <volume-id> \ --query "Volumes[].[VolumeId, VolumeType, Size, Iops, Throughput]"```
| Type | Max IOPS | Max Throughput ||------|-------------------------|----------------|| gp2 | 3 IOPS/GiB, max 16,000 | 250 MiB/s || gp3 | provisioned, max 16,000 | provisioned |
gp2 volumes under 1,000 GiB use a burst bucket — check `BurstBalance`.
## CapacityCloudWatch does **not** report filesystem usage by default — it needs theCloudWatch agent (`CWAgent` namespace, `disk_used_percent`). If the agent isabsent, say so in notes and mark reliability At Risk; don't guess.Lambda has no traditional uptime, so
lambda.md redefines what availability means for it:## Availability signals- Current state: `State` = Active, `LastUpdateStatus` = Successful.- Uptime: use Invocations vs Errors. 0 invocations for an app expected to be active = Unavailable (likely broken upstream trigger).- Redundancy: if VPC-attached, subnets must span ≥ 2 AZs.
## Reliability signals- Error rate: Errors / Invocations. Throttles > 0 counts against reliability.- Timeout risk: p99 Duration within 90% of the configured timeout.- DLQ: async functions without a DeadLetterConfig are a reliability gap.The security score
security.md makes security scoring arithmetic, so the result is repeatable. The score starts at 100 and loses points for each finding:Finding | Deduction |
|---|---|
SG open to 0.0.0.0/0 on SSH/RDP/DB port | −40 |
IAM role with AdministratorAccess -equivalent | −40 |
S3 Block Public Access not fully enabled | −40 |
ECR image with CRITICAL CVEs | −30 |
Broad unscoped managed policy | −20 |
EBS / RDS not encrypted at rest | −20 |
SG open on an unexpected port | −20 |
IAM statement with Resource: "*" | −10 |
SG open on the app's own listener port | −10 |
90–100 = Secure · 60–89 = At Risk · < 60 = Vulnerable.
Incidents from alarm history
I don't have a paging system wired in, so
incident-history.md derives incidents from CloudWatch alarm history with one procedure for both windows. That way the 24-hour and 30-day numbers are comparable:aws cloudwatch describe-alarm-history \ --alarm-name <alarm-name> --history-item-type StateUpdate \ --start-date <window-start> --end-date <window-end>- Each transition into
ALARMis an incident. The nextOKends it, and an alarm still inALARMat the end of the window is reported as ongoing.
-
downtime_minutes= the sum of ALARM→OK durations.
- Any deploy-shaped CloudTrail event (
UpdateService,RegisterTaskDefinition,UpdateFunctionCode…,CreateDeployment) within 30 minutes before an ALARM transition setsdeploy_correlated: true. That's a root-cause hint, not a scoring input.
Describe your topology inside the skill
vpc-networking.md opens with a short Account & Topology section: which account owns the VPC, that resources are RAM-shared, and that flow-log queries must target the network account. That one paragraph stopped the agent from querying for flow logs in the wrong account.Step 5: Create the custom agent

The custom agent ties it together: system prompt + tools + skills + memory. Mine has:
- Tool:
use_aws, the built-in tool the agent uses to call AWS APIs in connected accounts.
- Skill:
aws-app-availability-reliability.
- Memory store: the Agent Space's topology knowledge, built from discovery and earlier investigations.
The skill defines what to check and how to score. The system prompt defines what to produce. The key sections are below.
Point to the registry and don't copy it. If the prompt and the skill disagree, the agent picks one, and you don't get to choose which:
## Application List
Use the `aws-app-availability-reliability` skill's `applications.md` as theauthoritative set of applications to assess. Read it via the skill's Step 1 —DO NOT maintain a separate copy of this list here.Make the skill the scoring authority:
## Scoring Authority
Use the skill as the single source of truth for each application'sAvailability, Reliability, Security tier and Overall status. Do not derivethese from raw percentages — percentages are supporting evidence, not aseparate scoring system.Rescale thresholds for the shorter window. The skill's count thresholds were tuned for 7 days, and this agent runs over 24 hours:
For the dashboard's "last 24 hours" view, run the skill's full workflow with a24-hour lookback and also compute a 30-day baseline. Count thresholds tuned for7 days (e.g. "0–1 alarm state changes = Reliable") must be scaled down ~÷7, andthe output must say thresholds were rescaled.Define a JSON contract. Every downstream consumer reads this, so make it strict and give an example (and say the example values are illustrative):
{ "generated_at": "2026-07-14T09:00:00Z", "lookback": { "current": "Last 24 Hours", "baseline": "Last 30 Days", "threshold_scaling_applied": true }, "sla_target_percentage": 99.99, "summary": { "total_applications": 4, "by_overall_status": { "healthy": 1, "watch": 1, "at_risk": 1, "critical": 0, "unmapped": 1 }, "tier0_not_healthy": ["Imaging-Service"] }, "applications": [ { "name": "imaging-service", "criticality": "Tier 0", "resources_found": "EC2 (ASG, 2 AZs), ALB", "availability_tier": "Degraded", "reliability_tier": "At Risk", "security_tier": "Secure", "security_score": 92, "overall_status": "Watch", "responsible_components": ["reliability"], "metrics": { "availability_percentage": { "current": 99.92, "baseline": 99.90, "change": 0.02 }, "downtime_minutes": { "current": 1.2, "baseline": 4, "change": -2.8 }, "incidents": { "current": 2, "baseline": 3, "change": -1, "deploy_correlated": true } }, "notes": "…", "executive_summary": "…" } ]}Build the HTML from the JSON only. This stops the dashboard from inventing numbers that aren't in the data:
Build an HTML dashboard **from that JSON only** — do not introduce any figure,status, or finding that is not in the JSON. Single self-contained file: inlineCSS and JS only, no external scripts, fonts, images, or network requests (itwill be served as a static object from S3).Pin the final response format. A Lambda function parses the output, so there can't be any chatter around it:
## Final Response Format
Your final response must contain **exactly two fenced code blocks and nothingelse**:1. A ```json block with the complete report as a single valid JSON object.2. A ```html block starting with <!DOCTYPE html> and ending with </html>.
Anything outside them is discarded; a malformed or missing block loses the run.If some checks could not complete, record that in `notes` — still emit both blocks.Finally, fix the status-to-colour mapping (Healthy = green, Watch = yellow, At Risk = orange, Critical = red, unmapped = grey) and the sort order (Tier 0 first, then severity within each tier). That keeps every day's dashboard consistent with the day before.
Step 6: Deploy the skill from the CLI
You can edit skills in the console, but I keep them in Git and push them with a script. The
update-asset API takes the skill as a base64-encoded zip (the payload limit is 6 MB):#!/usr/bin/env bashset -euo pipefail
AGENT_SPACE_ID="${AGENT_SPACE_ID:?set AGENT_SPACE_ID}"ASSET_ID="${ASSET_ID:?set ASSET_ID}" # the skill's asset IDSKILL_DIR="skills/application-health-24h"ZIP_PATH="dist/aws-app-availability-reliability.zip"PAYLOAD_PATH="dist/update-asset-content.json"
mkdir -p dist && rm -f "$ZIP_PATH" "$PAYLOAD_PATH"(cd "$SKILL_DIR" && zip -r -X "../../$ZIP_PATH" . -x "*.zip")
if (( $(stat -c%s "$ZIP_PATH") > 6291456 )); then echo "Skill zip exceeds the 6 MB update-asset limit" >&2; exit 1fi
# Write the payload to a file instead of passing a huge string on the command lineprintf '{"zip":{"zipFile":"%s"}}' "$(base64 -w 0 "$ZIP_PATH")" > "$PAYLOAD_PATH"
aws devops-agent update-asset \ --agent-space-id "$AGENT_SPACE_ID" \ --asset-id "$ASSET_ID" \ --content "file://$PAYLOAD_PATH"The agent's system prompt is a separate asset. It's updated the same way with a file payload instead of a zip:
PROMPT_CONTENT=$(jq -R -s '.' AGENT.md)aws devops-agent update-asset \ --agent-space-id "$AGENT_SPACE_ID" \ --asset-id "$PROMPT_ASSET_ID" \ --content "{\"file\": {\"path\": \"AGENT.md\", \"body\": {\"text\": ${PROMPT_CONTENT}}}}"Step 7: Publish the report to S3 with Lambda
When a run finishes, an EventBridge rule on the
aws.aidevops source invokes a Lambda function. The function reads the run's journal records, extracts the two fenced blocks, validates them, and writes them to S3:s3://<bucket>/devops-agent/app-health/2026/10/28/<task_id>/report.jsons3://<bucket>/devops-agent/app-health/2026/10/28/<task_id>/dashboard.htmls3://<bucket>/devops-agent/app-health/latest/report.json # overwritten dailys3://<bucket>/devops-agent/app-health/latest/dashboard.htmlThe core of the function:
import json, os, refrom datetime import datetime, timezoneimport boto3
BUCKET = os.environ["RESULTS_BUCKET"]PREFIX = os.environ.get("RESULTS_PREFIX", "devops-agent/app-health").strip("/")
agent = boto3.client("devops-agent") # needs a Lambda layer with a current boto3s3 = boto3.client("s3")
JSON_BLOCK = re.compile(r"```json\s*\n(.*?)\n```", re.DOTALL | re.IGNORECASE)HTML_BLOCK = re.compile(r"```html\s*\n(.*?)\n```", re.DOTALL | re.IGNORECASE)
def get_all_records(space_id, execution_id): records, token = [], None while True: kwargs = {"agentSpaceId": space_id, "executionId": execution_id} if token: kwargs["nextToken"] = token resp = agent.list_journal_records(**kwargs) records.extend(resp.get("records", [])) token = resp.get("nextToken") if not token: return records
def extract_outputs(records): """Prefer the summary record, then messages; newest first.""" priority = {"investigation_summary_md": 0, "message": 1} ordered = sorted(enumerate(records), key=lambda ir: (priority.get(ir[1].get("recordType"), 2), -ir[0])) json_txt = html_txt = None for _, rec in ordered: c = rec.get("content", "") text = c if isinstance(c, str) else json.dumps(c, default=str) j, h = JSON_BLOCK.findall(text), HTML_BLOCK.findall(text) if j and h: return j[-1], h[-1] json_txt = json_txt or (j[-1] if j else None) html_txt = html_txt or (h[-1] if h else None) return json_txt, html_txt
def put(key, body, content_type): s3.put_object(Bucket=BUCKET, Key=key, Body=body.encode("utf-8"), ContentType=content_type, CacheControl="no-cache")
def lambda_handler(event, context): meta = event["detail"]["metadata"] base = f"{PREFIX}/{datetime.now(timezone.utc):%Y/%m/%d}/{meta['task_id']}"
records = get_all_records(meta["agent_space_id"], meta["execution_id"]) json_txt, html_txt = extract_outputs(records)
problems = [] if not json_txt: problems.append("no json block") else: try: report = json.loads(json_txt) except json.JSONDecodeError as e: problems.append(f"invalid JSON: {e}") if not html_txt: problems.append("no html block") elif "</html>" not in html_txt.lower(): problems.append("HTML truncated")
if problems: # Keep the evidence, then fail loudly so CloudWatch / a DLQ sees it put(f"{base}/_debug/records.json", json.dumps(records, default=str), "application/json") raise RuntimeError(f"{meta['task_id']}: {'; '.join(problems)}")
body = json.dumps(report, indent=2) for key_base in (base, f"{PREFIX}/latest"): put(f"{key_base}/report.json", body, "application/json") put(f"{key_base}/dashboard.html", html_txt, "text/html; charset=utf-8")A few details here are worth copying:
- Fail loudly. If either block is missing or broken, save the raw records under
_debug/and raise an error, so the failure shows up in CloudWatch or a DLQ instead of quietly leaving yesterday's report in place.
- Check for truncation. A long HTML answer can be cut off. Checking for
</html>catches that cheaply.
- Keep dated copies alongside
latest/. The dated copies give you history for trend charts, andlatest/gives you a stable URL.
- Bundle a current boto3 in a layer, because the Lambda runtime's bundled boto3 may not include the
devops-agentclient yet.
Step 8: Run on demand, then schedule it
Use Run now on the custom agent while you iterate. Read the output critically every time, especially app-to-resource mapping and the summary counts. Once a few runs in a row look right, add a schedule trigger on the agent's Triggers tab so the report is ready before people start work.
Lessons from testing
These are the problems I hit and how I fixed them.
Symptom | Cause | Fix |
|---|---|---|
Resources attributed to the wrong app ( apse2-pcs01 counted as Imaging-Service) | The model pattern-matched on names | Tag-only scoping, with naming as a flagged last resort; an explicit "names don't count" rule |
Two apps merged into one | The model inferred they were related | "Never infer two apps are the same" in the skill |
MongoDB checks for a server called MDB | General-knowledge reading of names | The Common Misconceptions table |
A vendor appliance on Watch every day | No-ASG rule capped it at Degraded | The HA Exempt column |
Missing-snapshot penalties on vendor-backed apps | The vendor owns the backups | The Backup Exempt column |
Flow-log checks always empty | Logs live in the network account | Connect the network account; describe the topology in vpc-networking.md |
Alarm-count thresholds too harsh in 24 hours | Thresholds were tuned for 7 days | Window-scaling rule (~÷7) in the system prompt |
The summary said 7 Watch, the rows said 6 | LLMs are bad at counting | Recompute the counts in code (below) |
99.5% with 0 minutes of downtime → "SLA breach" | The model estimated a percentage | Derive availability_percentage from downtime_minutes in code |
The last two rows lead to my main rule for this kind of agent: let the model judge, let code count. You don't need the model to produce totals. The publishing Lambda already has the JSON, so it can recompute them before writing to S3. This is the next change I'm making:
from collections import Counter
def recompute_summary(report): apps = report.get("applications", []) status = Counter((a.get("overall_status") or "unmapped").lower().replace(" ", "_") for a in apps) report["summary"] = { "total_applications": len(apps), "by_overall_status": {k: status.get(k, 0) for k in ("healthy", "watch", "at_risk", "critical", "unmapped")}, "tier0_not_healthy": [a["name"] for a in apps if a.get("criticality") == "Tier 0" and a.get("overall_status") != "Healthy"], } return reportThe HTML is still built by the model, so if the counts must match exactly, the next step is to render the dashboard from the JSON in the Lambda too, and have the agent return only the JSON.
What the first run found
Across 15 applications in one run, 4 were Healthy, 6 Watch, 4 At Risk and 1 Critical. All three Tier 0 apps were up with zero downtime, and none of them were Healthy. The most useful findings were gaps between what's configured and what's happening, which no alarm would ever fire on:
- A snapshot IAM role in place, but zero snapshots taken.
- A CloudWatch agent policy attached, but no agent installed.
- An application stopped for about six months and still in the inventory. For that one, the agent didn't guess. It wrote: "Determine intent: planned decommission or unintended outage? Escalate to the application owner."
Limitations to design around
- Tagging is the ceiling. Untagged resources end up
unmapped.
- It's not a pager. It runs daily and reads the last 24 hours and 30 days. Keep CloudWatch alarms for anything that needs to wake someone up.
- It's a snapshot. A planned RDS upgrade during the window will show up as a problem.
- No CloudWatch agent means no disk data.
- Read-only by design. It recommends fixes; it doesn't apply them.
Cost
AWS provides DevOps Agent credits to enterprise customers, and our daily run fits inside them, so our DevOps Agent bill is currently $0. Your credits depend on your agreement with AWS, so check with your account team. Compared with building the same thing on Amazon Bedrock, I didn't have to build the agent loop, cross-account access, resource discovery or scheduling. I wrote markdown and one Lambda function.
Try it yourself
- Pick one application with a clean
Applicationtag.
- Write
applications.mdwith that one row and its legends.
- Write a
SKILL.mdwith a good description, the four-step workflow and the scoring tables. Start with references for the two or three services that app uses.
- Create a custom agent whose system prompt points to the registry and defines the JSON contract.
- Run it on demand until you trust it. Then add the Lambda function, add a schedule, and add more applications.
Further reading: the AWS DevOps Agent user guide sections on custom agents, skills and EventBridge integration, and the
aws/tools-for-devops-agent GitHub repository for community skills. I originally presented this work as an AWS User Group talk. If you build something similar, I'd like to hear how you handle application scope and exceptions.Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article