feat: work orders → Bedrock KB sync #7

Merged
amoussa1229 merged 3 commits from feature/workorder-kb-sync into master 2026-04-13 19:38:20 +00:00
amoussa1229 commented 2026-04-13 18:37:04 +00:00 (Migrated from github.com)

Summary

  • Adds a new Lambda (seahaven-workorder-sync) that scans WorkOrders and WorkOrderComments DynamoDB tables (owned by workorder-ingest), converts each work order + comment history to markdown, and uploads to S3 under work-orders/
  • New CDK construct with EventBridge daily cron at 02:00 UTC and IAM grants for DynamoDB read on both tables, S3 read/write, and Bedrock StartIngestionJob
  • Enables the Slack bot to answer questions about Amazon APM work orders

ref #4

Test plan

  • Deploy stack with npx cdk deploy
  • Manually invoke seahaven-workorder-sync Lambda
  • Verify markdown files appear in S3 under work-orders/ prefix (1,942 WOs synced, 0 failures)
  • Verify KB ingestion job starts successfully (11,231 docs, 0 failures)
  • Ask the Slack bot a work-order-related question and confirm it retrieves relevant data
## Summary - Adds a new Lambda (`seahaven-workorder-sync`) that scans `WorkOrders` and `WorkOrderComments` DynamoDB tables (owned by workorder-ingest), converts each work order + comment history to markdown, and uploads to S3 under `work-orders/` - New CDK construct with EventBridge daily cron at 02:00 UTC and IAM grants for DynamoDB read on both tables, S3 read/write, and Bedrock `StartIngestionJob` - Enables the Slack bot to answer questions about Amazon APM work orders ref #4 ## Test plan - [x] Deploy stack with `npx cdk deploy` - [x] Manually invoke `seahaven-workorder-sync` Lambda - [x] Verify markdown files appear in S3 under `work-orders/` prefix (1,942 WOs synced, 0 failures) - [x] Verify KB ingestion job starts successfully (11,231 docs, 0 failures) - [x] Ask the Slack bot a work-order-related question and confirm it retrieves relevant data
This repo is archived. You cannot comment on pull requests.
No description provided.