During my studies at FCAJ and while working on the CloudCost Insight group project, the initial goal of my team and me was quite clear: automatically collect AWS costs, detect anomalies, send email alerts, and visualize data on a Dashboard.
The system currently uses Amazon EventBridge, AWS Lambda, Amazon S3, Amazon SQS, Amazon SNS, Amazon CloudWatch, Amazon API Gateway, Amazon CloudFront, and Amazon Cognito. When costs exceed the threshold or increase suddenly, Lambda Analyzer detects and sends an alert.
However, after completing this version, I realized an interesting question:
What if users do not only want to receive alerts, but also want to ask: “Why did EC2 costs increase?” or “What should I optimize first?”
That was when I learned about Amazon Bedrock AgentCore.
Amazon Bedrock AgentCore is an AWS managed platform that helps build, deploy, and operate AI Agents in production environments.
Instead of only calling a Large Language Model to answer questions, AgentCore supports Agents in accessing tools, data, and APIs, while also performing multiple processing steps to complete a task.
AgentCore does not require implementers to manage the runtime infrastructure for Agents themselves. The platform supports different frameworks and models, while also providing components for runtime, memory, identity, tool integration, and observability.
A basic chatbot usually operates using the following model:
User
→ Prompt
→ LLM
→ Answer
Meanwhile, an AI Agent can perform a sequence of actions:
User asks a question
→ Agent analyzes the request
→ Calls the appropriate tool or API
→ Queries data
→ Analyzes the results
→ Provides an answer or recommends an action
For example, with CloudCost Insight, a user may ask:
“Why is today’s cost higher than the average?”
A FinOps Agent can:
Runtime provides an isolated and scalable environment to run Agents. This is where the Agent performs reasoning, calls tools, and processes tasks that may take a long time.
Instead of having to deploy Agents on EC2, ECS, or Kubernetes, developers can focus on Agent logic and let AWS manage the runtime layer.
Gateway helps connect Agents with existing tools and services. An API or Lambda function can be converted into a tool that an Agent can discover and invoke through the Model Context Protocol (MCP).
This component is particularly suitable for CloudCost Insight. APIs such as retrieving daily costs, retrieving top services, or checking anomaly status can become tools for a FinOps Agent.
FinOps Agent
→ AgentCore Gateway / MCP
→ Lambda API
→ S3 Cost Data
When an Agent needs to access AWS resources or third-party tools, identity is a very important component. AgentCore Identity supports authentication and authorization mechanisms so that Agents can act securely on behalf of users or systems.
In CloudCost Insight, this component can be integrated with the existing Amazon Cognito setup to ensure that the Agent only accesses cost data that users are authorized to view.
Memory helps an Agent maintain context during conversations or store necessary information between sessions.
For example, if a user has already asked about EC2 costs this week, the Agent can understand the next question:
“What about Lambda?”
without requiring the user to repeat the entire context.
When deploying an AI Agent to production, the questions are not only whether the Agent can provide an answer, but also:
AgentCore Observability provides end-to-end monitoring capabilities for Agent activities and integrates with Amazon CloudWatch. This is an important factor for debugging, evaluating, and improving Agents over time.
The current version of the group project already has the ability to:
In the next version, I would like to experiment with an AI FinOps Agent model:
User
→ Dashboard
→ Amazon Cognito
→ FinOps Agent on Bedrock AgentCore
→ AgentCore Gateway / MCP
→ CloudCost Insight APIs
→ S3 Cost Data
→ Analysis and optimization recommendations
The Agent can help users answer questions such as:
AI Agents do not replace Cloud or FinOps engineers. However, if designed properly in terms of security, data, and observability, an Agent can become a helpful teammate that reduces investigation time and delivers necessary information to users more quickly.
Amazon Bedrock AgentCore opens up an interesting development direction for CloudCost Insight: from an automated cost monitoring and alerting system, it can evolve into an AI FinOps Agent that supports cost analysis and optimization recommendations.
From CloudCost Insight to an AI FinOps Agent with Amazon Bedrock AgentCore