From 293cc0640a73273521b13749a210ec2d2583a502 Mon Sep 17 00:00:00 2001 From: Jason Park <93040528+Autogod@users.noreply.github.com> Date: Fri, 30 Dec 2022 23:07:09 +0900 Subject: [PATCH] fix: changed already existing db role name (#231) * feat: updated api get schema and renamed database * fix: fix lambda function * fix: fixed lambda get single thread and others * fix: fix already existing db role --- lib/constructs/common/lambda-functions.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/constructs/common/lambda-functions.ts b/lib/constructs/common/lambda-functions.ts index d3873bfd2..375fbdd2b 100644 --- a/lib/constructs/common/lambda-functions.ts +++ b/lib/constructs/common/lambda-functions.ts @@ -500,7 +500,7 @@ export class ForumThreadFunctions extends Construct { description: 'Allow lambda function to perform crud operation on dynamodb', path: `/service-role/${AwsServicePrincipal.LAMBDA}/`, - roleName: 'dynamodb-lambda-read', + roleName: 'dynamodb-lambda-read-thread', managedPolicies: [ iam.ManagedPolicy.fromManagedPolicyArn( this, @@ -524,7 +524,7 @@ export class ForumThreadFunctions extends Construct { description: 'Allow lambda function to perform crud operation on dynamodb', path: `/service-role/${AwsServicePrincipal.LAMBDA}/`, - roleName: 'dynamodb-lambda-write', + roleName: 'dynamodb-lambda-write-thread', managedPolicies: [ iam.ManagedPolicy.fromManagedPolicyArn( this,