[Talk Report] I gave a presentation titled "Noticing AWS Cost Anomalies Also Costs You"

[Talk Report] I gave a presentation titled "Noticing AWS Cost Anomalies Also Costs You"

This is an effort to reduce the investigation workload for Cost Anomaly Detection. It comes with sample code that can be deployed with AWS SAM.
2026.05.30

This page has been translated by machine translation. View original

Introduction

Hello, I'm watabo from Classmethod Operations.

I gave a presentation at an event called opsmethod#2 held at the Classmethod Osaka office, under the title "AWS cost anomalies cost time to notice — automating 1 hour of investigation."

https://classmethod.connpass.com/event/385815/

Thank you to everyone who attended.

Slides

Comments

Starting from the real operational pain of "Cost Anomaly Detection (CAD) is great for detection alone, but the subsequent investigation takes 30 minutes to an hour every time," I connect this to using generative AI to compress the investigation phase.

Since the context was cost optimization, I also touched on general cost optimization services without relying on AI.

The architecture is nothing too complicated.
It retrieves and aggregates the past 14 days of Cost Anomaly Detection trends via Lambda, then has Bedrock (Claude Haiku 4.5) summarize them.

14

I chose Claude Haiku 4.5 as the model because it offers sufficient quality for summarization tasks, with low latency and cost.
The Bedrock cost per event stays well below a few cents.
If you want to increase context, Sonnet would also be worth considering.

I made the notification destination compatible with both Slack and Teams because the chat tools used in customer environments vary, so the intent was to make it easy to adopt in any operational setting.

Sample Code

Since I had the opportunity, I posted sample code on GitHub.
There are several prerequisites such as setting up AWS SAM, so please keep that in mind when trying it out.
Tested on both Mac and Windows.

https://github.com/takasatowatarun/cost-anomaly-triage

Closing

I'm glad I was able to present in this format the work I had been doing to make existing AWS operations easier.
I hope this entry proves helpful to someone.

About Cloud Operations Support Services

For "mundane but time-consuming AWS operations tasks" like the ones covered this time, Classmethod Operations offers operations support services for consultation.
We have a monthly menu where you can entrust us with monitoring, initial incident response, cost optimization, security operations, and technical consulting around AWS.
If you're interested, please feel free to reach out.

https://classmethod-operations.jp/services/cloud-support/

Share this article

AWSのお困り事はクラスメソッドへ