From cb30cf8da2a94312b5f1449dbcd4bcf70a665d81 Mon Sep 17 00:00:00 2001 From: Chris Park Date: Mon, 9 Dec 2024 10:00:41 +1030 Subject: [PATCH] Merge actions on lambda:event-source-mapping into one item. --- packages/serverless-deploy-iam/bin/app.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/serverless-deploy-iam/bin/app.ts b/packages/serverless-deploy-iam/bin/app.ts index 20d1181..9805097 100755 --- a/packages/serverless-deploy-iam/bin/app.ts +++ b/packages/serverless-deploy-iam/bin/app.ts @@ -145,12 +145,9 @@ export class ServiceDeployIAM extends cdk.Stack { resources: [ `arn:aws:lambda:${region}:${accountId}:event-source-mapping:*`, ], - actions: ["lambda:TagResource"], - }, - { - name: "LAMBDA", - resources: [`*`], actions: [ + "lambda:TagResource", + "lambda:UntagResource", "lambda:GetEventSourceMapping", "lambda:ListEventSourceMappings", "lambda:CreateEventSourceMapping",