Skip to content

Commit

Permalink
Lambdaに生成AIのテーブルの書き込み権限を付与
Browse files Browse the repository at this point in the history
  • Loading branch information
mt-osho-san committed May 18, 2024
1 parent 346ffbd commit c3375e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/lib/constructs/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ export class ApiStack extends Construct {
},
}
);
table.grantWriteData(diaryGenerateTitleCreateFunction);
generativeAiTable.grantWriteData(diaryGenerateTitleCreateFunction);
table.grantStreamRead(diaryGenerateTitleCreateFunction);
diaryGenerateTitleCreateFunction.addEventSource(
new DynamoEventSource(table, {
Expand Down

0 comments on commit c3375e1

Please sign in to comment.