From 1cc3a1fecf64d82e9befc785dc6070cb239a3afa Mon Sep 17 00:00:00 2001 From: Andrei Borza Date: Fri, 13 Dec 2024 14:31:17 +0100 Subject: [PATCH] fix(aws-lambda): Remove `lambda:ListLayerVersions` permission as it breaks publishing --- src/utils/awsLambdaLayerManager.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/utils/awsLambdaLayerManager.ts b/src/utils/awsLambdaLayerManager.ts index 49b0d0b4..fe7fc220 100644 --- a/src/utils/awsLambdaLayerManager.ts +++ b/src/utils/awsLambdaLayerManager.ts @@ -83,13 +83,6 @@ export class AwsLambdaLayerManager { Action: 'lambda:GetLayerVersion', Principal: '*', }); - await lambda.addLayerVersionPermission({ - LayerName: this.layerName, - VersionNumber: publishedLayer.Version, - StatementId: 'public', - Action: 'lambda:ListLayerVersions', - Principal: '*', - }); if (this.verboseInfo) { logger.info(`Published layer in ${region} for ${this.runtime.name}: