Automate a weekly AWS cost report with anomaly flags

Cloud bills surprise teams because nobody opens Cost Explorer until the invoice lands. A scheduled agent reads cost and usage weekly, explains what moved, and drafts a report its department head reviews and you approve.

What you’ll set up

Connections

AWS IAM access key (read-only cost access) · Required

Reads cost and usage by service. A view-level credential is enough.

Upgrades

Delivery (channel or inbox)

Delivers the approved output to your channel or inbox.

Inputs

Planned spend to ignore · Optional

Text, no default

Ready by · Required

Time, default 09:00

Brief · Required

Text, prefilled and editable during setup.

Runs

Runs every Monday at 08:00

Done by Research analyst

You approve before anything goes out.

Set up this job

You approve every report · Free to start

How it runs

One agent does the work. Its department head reviews it, then you approve.

  1. 1Research analyst

    Runs every Monday at 08:00 and prepares the report from your connected sources.

  2. 2CTO · Review

    The department head reviews the report before it reaches you.

  3. 3You

    You approve before anything goes out.

What you get

Sample, not live dataSample weekly cost report (Sample, not live data)

Sample, not live data. Account, services and amounts are invented.

Cloud spend, week of 2 Nov (sample)

Total: $1,284 (up $106, 9% on the prior week)

Biggest movers

  1. Data transfer: +$60 (+41%)
  2. CloudWatch Logs: +$24 (+22%)
  3. EC2 compute: +$8 (+1%)

New this week: a managed search domain, $14.

Movers and new spend add up to the +$106.

Needs your approval before it is sent.

Why cost surprises happen

AWS shows spend in Cost Explorer, but the graph helps if someone looks at it. A forgotten instance, a runaway log group or a data transfer spike can run for weeks before the invoice reveals it. Looking weekly instead of monthly shortens that window, yet the weekly look is a chore that gets skipped. The job is simple enough to schedule: pull last week, compare it with the week before, and say what changed.

How the scheduled job works

You add the job and grant view access to cost and usage data. Each Monday a scheduled agent requests the previous seven days grouped by service, using the Cost Explorer GetCostAndUsage operation, and compares each service with the prior week. It reports the total, the three biggest increases with the amount and percent change, and any service that appeared this week. If AWS Cost Anomaly Detection is enabled on your account, it also lists the anomalies that service has raised. It cannot change resources and it does not stop anything; it reports.

Review and approval

The CTO agent, as department head, reviews the draft before it reaches you: do the totals add up, are the percent changes computed against the right week, is any movement explained by something you already know, such as a release. Then you approve, edit or skip it, and nothing is sent until you do. Because the agent sees numbers and not intent, tell it about planned spend, like a load test, in the notes field so it stops flagging it.

What to do with the report

Treat the top mover as a question, not a verdict. Open the service in Cost Explorer, filter by usage type, and find the resource. The report states how much spend changed, not whether that is acceptable, so judge it against your own budget. Over a month the same names will keep appearing; those are the places worth a cleanup.

Questions

Start with one report

Set up this job

You approve every report · Free to start