Skip to content

Commit

Permalink
Lambda DynamoDB Streamのポリシーを追加
Browse files Browse the repository at this point in the history
  • Loading branch information
mt-osho-san committed May 18, 2024
1 parent 387fe3e commit c09dbb3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/backend/lib/constructs/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ export class ApiStack extends Construct {
resources: [table.tableArn],
});
generativeAiLambdaRole.addToPolicy(ssmPolicy);
generativeAiLambdaRole.addToPolicy(dynamodbStreamPolicy);

new ssm.StringParameter(this, "openai-api-key", {
parameterName: "OpenAI_API_KEY",
Expand Down

0 comments on commit c09dbb3

Please sign in to comment.