Skip to content

Commit

Permalink
fix: forum ads api second (#343)
Browse files Browse the repository at this point in the history
* fix: adsApi lambda function problem

* fix: adsApi lambda function problem second
  • Loading branch information
LIEN-YUHSIANG authored Oct 9, 2023
1 parent b7182f5 commit b1dc486
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/constructs/common/lambda-functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -931,13 +931,13 @@ export class AdsImageProcessFunctions extends Construct {

const DBReadRole: iam.LazyRole = new iam.LazyRole(
this,
'dynamo-s3-read-role',
'dynamodb-s3-lambda-ads-imgs-read',
{
assumedBy: new iam.ServicePrincipal(AwsServicePrincipal.LAMBDA),
description:
'Allow lambda function to perform read operation on dynamodb and s3',
path: `/service-role/${AwsServicePrincipal.LAMBDA}/`,
roleName: 'dynamodb-s3-lambda-read-ads-imgs', // Changed the new role name
roleName: 'dynamodb-s3-lambda-ads-imgs-read',
managedPolicies: [
iam.ManagedPolicy.fromManagedPolicyArn(
this,
Expand All @@ -960,13 +960,13 @@ export class AdsImageProcessFunctions extends Construct {

const DBSyncRole: iam.LazyRole = new iam.LazyRole(
this,
'dynamo-s3-ads-sync-role',
'dynamo-s3-ads-imgs-sync-role',
{
assumedBy: new iam.ServicePrincipal(AwsServicePrincipal.LAMBDA),
description:
'Allow lambda function to perform crud operation on dynamodb and s3',
path: `/service-role/${AwsServicePrincipal.LAMBDA}/`,
roleName: 'dynamodb-s3-ads-sync-role',
roleName: 'dynamodb-s3-ads-imgs-sync-role',
managedPolicies: [
iam.ManagedPolicy.fromManagedPolicyArn(
this,
Expand Down

0 comments on commit b1dc486

Please sign in to comment.