Skip to content

Commit b4d182e

Browse files
authored
Add LayerArn to outputs
This will allow to easily import this layer into other templates or CDK applications: ```ts const canvasLayer = new CfnApplication(this, 'NodeCanvasLayer", { location: { applicationId: "arn:aws:serverlessrepo:us-east-1:990551184979:applications~lambda-layer-canvas-nodejs", semanticVersion: "2.9.1" } } const nodeCanvasLayerVersion = LayerVersion.fromLayerVersionArn( this, "NodeCanvasLayerVersion", canvasLayer.getAtt("Outputs.LayerVersion").toString() ```
1 parent 96eab58 commit b4d182e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

package-sam.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,8 @@ Resources:
1111
- nodejs<NODEJS_RUNTIME_VERSION>
1212
RetentionPolicy: Retain
1313
LicenseInfo: MIT
14-
14+
15+
Outputs:
16+
LayerVersion:
17+
Description: Layer ARN Reference
18+
Value: !Ref NodeCanvasLayer

0 commit comments

Comments
 (0)