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

adds sam.yaml for publishing to SAR #17

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/sam.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: >
deno-runtime

Example custom runtime for Deno

Resources:
DenoRuntime:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think this would make sense to be called simply "Deno" ? or is it important it's suffixed with Runtime?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doesn't really matter / just a clarity thing / end user probably won't see it

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In serverless it's very fussy about being called DenoLambdaLayer.

Type: AWS::Lambda::LayerVersion
Properties:
Content:
S3Bucket: begin-public-east-1
S3Key: deno-runtime.zip
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this deno-lambda-layer.zip ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It may be the s3 thing is not required (and can use ContentUri): https://serverless.pub/sar-layers/

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this deno-lambda-layer.zip ?

yes

It may be the s3 thing is not required (and can use ContentUri): https://serverless.pub/sar-layers/

maybe! seems the docs are pretty thin and maybe in flux; typical aws! =P

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't work without s3! AWS docs seem very thin :)


Outputs:
DenoRuntimeArn:
Value: !Ref DenoRuntime