AI Guides

How to Build a Self‑Service AWS Health Analytics Dashboard with Bedrock Agents

A step‑by‑step guide for engineers to create a self‑service AWS Health analytics platform using Chaplin and Amazon Bedrock agents, turning raw health events into actionable insights.

Karim HanyJune 28, 20265 min read
Editorially reviewed

TL;DR: Use the open‑source Chaplin framework, connect it to Amazon Bedrock via the Model Context Protocol, and deploy a self‑service dashboard that turns AWS Health events into clear, actionable recommendations.

Key takeaways

  • Chaplin (Customer Health and Planned Lifecycle Intelligence Nexus) is an open‑source stack that couples AWS Health data with Bedrock agents.
  • The Model Context Protocol (MCP) lets agents query health data in real time.
  • Deploying the solution requires an AWS account, Bedrock access, and basic IAM, Lambda and CloudFormation knowledge.
  • Pro tips include using Bedrock Guardrails, version‑controlled prompts, and cost‑monitoring via OpenAI spend controls concepts.
  • The resulting dashboard can surface actionable insights such as upcoming service deprecations, outage predictions, and remediation steps.

Problem: Unstructured AWS Health data stalls rapid response

Every day, AWS publishes health events—service advisories, scheduled maintenance, and outage notices. While the raw feed is comprehensive, most teams receive it as a dense JSON stream or email digest. Sifting through that data to pinpoint which events affect a specific portfolio, estimate impact, and decide on remediation can take hours. The delay reduces the value of the health information and can lead to missed mitigation windows.

Prerequisites: What you need before you start

To follow this guide you should have:

  1. An AWS account with permissions to create IAM roles, Lambda functions, CloudFormation stacks, and access to Amazon Bedrock.
  2. Basic familiarity with AWS CLI or the console, and a working Python 3 environment.
  3. Access to the Chaplin GitHub repository (the open‑source solution referenced by the AWS Machine Learning Blog).
  4. Bedrock model access (e.g., Claude, Titan, or other supported foundation models) and the ability to enable the Model Context Protocol.
  5. Optional: a monitoring account for cost and usage analytics, inspired by OpenAI’s recent spend‑control features.

If any of these items are missing, pause the guide and provision them first. The steps assume you can run CloudFormation templates and invoke Lambda functions.

Step‑by‑step: Building the self‑service health analytics platform

Below is a practical workflow that mirrors the implementation described by the AWS Machine Learning Blog on June 25, 2026.

  1. Clone the Chaplin repository. Open a terminal and run git clone https://github.com/aws-samples/chaplin. The repo contains the core agents, MCP adapters, and CloudFormation templates.
  2. Configure AWS credentials. Ensure your CLI is set to the target account: aws configure with an IAM user or role that has AdministratorAccess for the initial deployment.
  3. Set up Bedrock model access. In the Bedrock console, request access to the desired foundation model. Record the model ID; you will reference it in the MCP configuration file (mcp-config.json).
  4. Enable the Model Context Protocol. According to the AWS blog, Chaplin agents communicate with Bedrock through MCP. Edit mcp-config.json to include the model ARN and the allowed data schemas (AWS Health event schema, account metadata, etc.).
  5. Deploy the infrastructure. From the deployment folder, run aws cloudformation deploy --template-file chaplin-stack.yaml --stack-name chaplin‑health‑analytics --capabilities CAPABILITY_NAMED_IAM. The stack creates a Lambda layer for the agents, an API Gateway endpoint, DynamoDB tables for event storage, and IAM roles with least‑privilege permissions.
  6. Ingest AWS Health events. Enable the AWS Health API for your organization and configure the HealthIngestor Lambda (included in the repo) to poll the DescribeEvents endpoint every five minutes. The Lambda writes raw events to the DynamoDB HealthEvents table.
  7. Connect agents to the event store. The Bedrock‑backed agents read from DynamoDB via the MCP adapter. Each agent is defined in agents/ and includes a prompt template that asks the model to translate an event into a recommended action (e.g., “What steps should we take for a scheduled RDS maintenance window?”).
  8. Expose a self‑service UI. Deploy the static web app located in frontend/ to an S3 bucket with CloudFront distribution. The UI calls the API Gateway endpoint to request insights for a selected account or service.
  9. Test the end‑to‑end flow. Open the UI, select an AWS account, and request insights. The UI should display a list of recent health events, each paired with a concise recommendation generated by the Bedrock agent.
  10. Iterate on prompts. If the recommendations are too generic, refine the prompt templates in agents/prompt.txt. Version‑control the prompts and redeploy the Lambda layer to propagate changes.

When all steps succeed, you have a fully functional, self‑service analytics dashboard that turns raw health data into actionable guidance, exactly as demonstrated in the AWS Machine Learning Blog post.

Pro Tips: Fine‑tuning the solution for production

  • Guardrails for safety. Use Bedrock’s built‑in guardrails to prevent the model from generating unsafe or misleading remediation steps.
  • Cost awareness. Borrow ideas from OpenAI’s June 18, 2026 spend‑control announcement: tag Bedrock usage with a cost allocation tag and set up CloudWatch alarms when daily spend exceeds a threshold.
  • Versioned prompts. Store prompt files in a version‑controlled S3 bucket. Include the prompt version in the DynamoDB record so you can audit which prompt produced a given recommendation.
  • Multi‑region resilience. Deploy the CloudFormation stack in at least two regions and use Route 53 health checks to route UI traffic to the healthiest endpoint.
  • Feedback loop. Add a “thumbs up/down” widget to the UI. Store feedback in a separate DynamoDB table and schedule a nightly Lambda to fine‑tune prompts based on user ratings.

Real‑world impact: Turning insights into faster remediation

Healthcare organizations that run critical workloads on AWS can benefit immediately. By surfacing actionable recommendations, Chaplin reduces the mean time to understand a health event from hours to minutes. For example, a scheduled upgrade to an Amazon RDS instance that would otherwise require manual cross‑team coordination can be highlighted with a one‑click remediation plan generated by the Bedrock agent. The self‑service nature means any engineer with appropriate IAM permissions can query health data without involving a centralized ops team.

Because the solution is open source, teams can extend the agent library to cover compliance checks, cost‑optimization alerts, or even patient‑data‑handling policies. The Model Context Protocol ensures that future Bedrock models can be swapped in without rewriting the integration layer, protecting the investment as the underlying AI improves.

Explore related AI topics

AI AgentsChatGPT Excel Prompts

FAQ

Q: Do I need a paid Bedrock subscription to run Chaplin?

A: Yes. Chaplin relies on Bedrock models, which are billed per token usage. You can start with the free tier if available, but production workloads will require a paid plan.

Q: Can Chaplin handle health events from multiple AWS accounts?

A: Absolutely. The ingestion Lambda can be configured with an organization‑wide Health API token, and the DynamoDB schema includes an accountId attribute for segregation.

Q: Is the Model Context Protocol publicly documented?

A: The MCP is part of Bedrock’s developer toolkit. The Chaplin repo includes a sample mcp-config.json that shows how to enable it for health‑event schemas.

Q: How do I monitor the cost of Bedrock calls?

A: Follow OpenAI’s spend‑control approach: tag Bedrock usage, enable detailed billing reports, and set CloudWatch alarms for budget thresholds.

Topics Covered
AWS HealthAmazon BedrockAI agentsself‑service analyticscloud engineering
Related Coverage