Skip to content

Commit

Permalink
fix(aws-lambda): Remove lambda:ListLayerVersions permission as it b…
Browse files Browse the repository at this point in the history
…reaks publishing
  • Loading branch information
andreiborza committed Dec 13, 2024
1 parent a6fd4b0 commit 1cc3a1f
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/utils/awsLambdaLayerManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}:
Expand Down

0 comments on commit 1cc3a1f

Please sign in to comment.