Skip to content

Commit

Permalink
Merge pull request #36 from hayd/layer-arn
Browse files Browse the repository at this point in the history
Rename SAR Output to LayerArn
  • Loading branch information
hayd committed Jan 16, 2020
2 parents a4c33c0 + a2fdf28 commit c8316bd
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 c8316bd

Please sign in to comment.