Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b4d182e

Browse files
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‎

Lines changed: 5 additions & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /