Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Rename SAR Output to LayerArn
Browse files Browse the repository at this point in the history
  • Loading branch information
hayd committed Jan 16, 2020
1 parent a4c33c0 commit a2fdf28
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions example-sam/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Resources:
Properties:
Location:
ApplicationId: arn:aws:serverlessrepo:us-east-1:390065572566:applications/deno
SemanticVersion: 0.8.0
SemanticVersion: 0.9.0

HelloWorldFunction:
Type: AWS::Serverless::Function
Expand All @@ -21,7 +21,7 @@ Resources:
Handler: hello.handler
Runtime: provided
Layers:
- !GetAtt Deno.Outputs.DenoArn
- !GetAtt Deno.Outputs.LayerArn
Events:
ApiEvent:
Type: HttpApi
9 changes: 4 additions & 5 deletions example-serverless/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,14 @@ provider:
package:
exclude:
- .deno_dir/gen/file
- deno-lambda-layer.zip
- node_modules
- package-lock.json

functions:
candidateSubmission:
handler: api/candidate.submit
layers:
- !GetAtt Deno.Outputs.DenoArn
- !GetAtt Deno.Outputs.LayerArn
memorySize: 128
description: Submit candidate info
events:
Expand All @@ -38,7 +37,7 @@ functions:
listCandidates:
handler: api/candidate.list
layers:
- !GetAtt Deno.Outputs.DenoArn
- !GetAtt Deno.Outputs.LayerArn
memorySize: 128
description: List all candidates
events:
Expand All @@ -49,7 +48,7 @@ functions:
candidateDetails:
handler: api/candidate.get
layers:
- !GetAtt Deno.Outputs.DenoArn
- !GetAtt Deno.Outputs.LayerArn
memorySize: 128
description: Get candidate by id
events:
Expand All @@ -65,7 +64,7 @@ resources:
Properties:
Location:
ApplicationId: arn:aws:serverlessrepo:us-east-1:390065572566:applications/deno
SemanticVersion: 0.0.9
SemanticVersion: 0.9.0

candidatesTable:
Type: AWS::DynamoDB::Table
Expand Down
2 changes: 1 addition & 1 deletion sar/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Resources:
S3Key: deno-lambda-layer_DENO_LAMBDA_VERSION.zip

Outputs:
DenoArn:
LayerArn:
Value: !Ref DenoLambdaLayer

Metadata:
Expand Down

0 comments on commit a2fdf28

Please sign in to comment.