Obsidian sync
The sync Lambda runs on a 5-minute EventBridge schedule.
- Clone (or pull) the Obsidian vault git repo into
/tmp. - Walk every
*.mdfile, content-hash it. - For each file whose hash changed since the last sync, parse it and upsert
the page through the same
Storethe API uses. - After all pages are upserted, resolve wikilinks across pages so forward references in the walk order still create backlinks.
- Rebuild the inverted search index and upload it to the search S3 bucket.
Write-back (db -> vault) is best-effort and runs at the end of each sync.
Related: architecture · home · #meta #sync