Skip to content

Commit de37723

Browse files
committed
deploy
1 parent 49d633e commit de37723

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

cloudformation/template.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
Description: Pandoc AWS Lambda Layer
2+
Parameters:
3+
AllowedPrincipal:
4+
Type: String
5+
Description: Account principal allowed to deploy this layer
6+
Default: '*'
27

38
Resources:
49
PandocLayer:
@@ -13,6 +18,13 @@ Resources:
1318
S3Bucket: DEPLOYMENT_BUCKET_NAME
1419
S3Key: DEPLOYMENT_KEY
1520

21+
DeploymentPermission:
22+
Type: "AWS::Lambda::LayerVersionPermission"
23+
Properties:
24+
Action: lambda:GetLayerVersion
25+
LayerVersionArn: !Ref PandocLayer
26+
Principal: !Ref AllowedPrincipal
27+
1628
Outputs:
1729
PandocLayer:
1830
Value: !Ref PandocLayer

0 commit comments

Comments
 (0)