feat: daily Notion → Bedrock KB sync #5

Merged
amoussa1229 merged 2 commits from feature/notion-kb-sync into master 2026-04-13 04:01:58 +00:00
amoussa1229 commented 2026-04-13 03:58:17 +00:00 (Migrated from github.com)

Summary

  • Adds a scheduled Lambda (seahaven-notion-sync) that pulls all pages from the Office Operations Notion teamspace, converts them to markdown, and uploads to the KB S3 bucket under a notion/ prefix
  • Triggers a Bedrock KB ingestion job after each sync so content is immediately indexed
  • Runs daily at 02:00 UTC via EventBridge
  • Notion integration token stored in Secrets Manager at seahaven/notion/api-key

What's deployed

Resource Details
Lambda seahaven-notion-sync (Node 22, 512 MB, 5 min timeout)
Schedule EventBridge cron — daily at 02:00 UTC
Secret seahaven/notion/api-key in Secrets Manager
S3 prefix notion/ in seahaven-kb-docs-328440206208

Test plan

  • Manual Lambda invocation — 10 pages synced from Office Operations, 0 failures
  • Bedrock ingestion job started successfully (job ID 08XJO0UC6U)
  • Verify ingestion job completes and content is queryable via Slack bot
  • Confirm daily EventBridge rule fires at 02:00 UTC

Post-deploy setup (already done)

  1. Set Notion integration token in Secrets Manager → seahaven/notion/api-key
  2. Ensure Notion integration is connected to the Office Operations teamspace

ref #4

## Summary - Adds a scheduled Lambda (`seahaven-notion-sync`) that pulls all pages from the Office Operations Notion teamspace, converts them to markdown, and uploads to the KB S3 bucket under a `notion/` prefix - Triggers a Bedrock KB ingestion job after each sync so content is immediately indexed - Runs daily at 02:00 UTC via EventBridge - Notion integration token stored in Secrets Manager at `seahaven/notion/api-key` ## What's deployed | Resource | Details | |---|---| | Lambda | `seahaven-notion-sync` (Node 22, 512 MB, 5 min timeout) | | Schedule | EventBridge cron — daily at 02:00 UTC | | Secret | `seahaven/notion/api-key` in Secrets Manager | | S3 prefix | `notion/` in `seahaven-kb-docs-328440206208` | ## Test plan - [x] Manual Lambda invocation — 10 pages synced from Office Operations, 0 failures - [x] Bedrock ingestion job started successfully (job ID `08XJO0UC6U`) - [ ] Verify ingestion job completes and content is queryable via Slack bot - [ ] Confirm daily EventBridge rule fires at 02:00 UTC ## Post-deploy setup (already done) 1. Set Notion integration token in Secrets Manager → `seahaven/notion/api-key` 2. Ensure Notion integration is connected to the Office Operations teamspace ref #4
This repo is archived. You cannot comment on pull requests.
No description provided.