Skip to content

Grant lambda role dynamodb:BatchGetItem on signals table - #92

Merged
wparad merged 1 commit into
mainfrom
claude/ses-adapter-dynamodb-perms-unb82i
Aug 26, 2026
Merged

Grant lambda role dynamodb:BatchGetItem on signals table#92
wparad merged 1 commit into
mainfrom
claude/ses-adapter-dynamodb-perms-unb82i

Conversation

@wparad

@wparad wparad commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Production was throwing AccessDeniedException in threadsApi.ts search-result hydration: dynamodb:BatchGetItem on SES-Email-Adapter-signals was not granted to the SES-Email-Adapter-lambda role.
  • The Terraform IAM policy in deploy/compute.tf granted GetItem, PutItem, UpdateItem, DeleteItem, Query, BatchWriteItem, and Scan on the signals/accounts/processing/audit/resources tables, but was missing BatchGetItem.
  • Added dynamodb:BatchGetItem to the shared DynamoDB statement, which covers all tables the statement applies to.

Test plan

  • terraform plan in deploy/ to confirm the IAM policy diff is additive-only (adds dynamodb:BatchGetItem action, no other changes)
  • Apply and confirm search result hydration in threadsApi.ts no longer errors in production

Generated by Claude Code

Search result hydration in threadsApi.ts calls BatchGetItem against
the signals table, but the lambda IAM policy only granted GetItem,
PutItem, UpdateItem, DeleteItem, Query, BatchWriteItem, and Scan,
causing production AccessDeniedException failures.
@wparad
wparad merged commit 385c43b into main Aug 26, 2026
5 checks passed
@wparad
wparad deleted the claude/ses-adapter-dynamodb-perms-unb82i branch August 26, 2026 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants