We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
lambda:ListLayerVersions
1 parent c7d33a1 commit ab21495Copy full SHA for ab21495
.gitignore
@@ -11,3 +11,4 @@ npm-debug.log
11
.Trashes
12
*.env
13
.eslintcache
14
+.idea
src/utils/awsLambdaLayerManager.ts
@@ -83,6 +83,13 @@ export class AwsLambdaLayerManager {
83
Action: 'lambda:GetLayerVersion',
84
Principal: '*',
85
});
86
+ await lambda.addLayerVersionPermission({
87
+ LayerName: this.layerName,
88
+ VersionNumber: publishedLayer.Version,
89
+ StatementId: 'public',
90
+ Action: 'lambda:ListLayerVersions',
91
+ Principal: '*',
92
+ });
93
94
if (this.verboseInfo) {
95
logger.info(`Published layer in ${region} for ${this.runtime.name}:
0 commit comments