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

Commit

Permalink
Update QUICK-START.md
Browse files Browse the repository at this point in the history
Reference SAR application
  • Loading branch information
hayd committed Feb 18, 2020
1 parent 56d8b4e commit 91cced7
Showing 1 changed file with 26 additions and 8 deletions.
34 changes: 26 additions & 8 deletions QUICK-START.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,30 @@
For an even quicker start, deploy the example application
[deno-hello-world](https://serverlessrepo.aws.amazon.com/applications/arn:aws:serverlessrepo:us-east-1:390065572566:applications~deno-hello-world)
sample SAR application.

## Quick Start in the AWS console

From the [AWS console](https://console.aws.amazon.com/lambda/):
1. Visit the [deno SAR application](https://serverlessrepo.aws.amazon.com/applications/arn:aws:serverlessrepo:us-east-1:390065572566:applications~deno)
and click the Deploy button:

<img width="1301" alt="Screen Shot 2020-02-17 at 14 42 36" src="https://user-images.githubusercontent.com/1931852/74705321-50da1500-51c8-11ea-8709-afc3d46dde8c.png">

This will take you to your preferred region to Deploy:

1. Download zip files from the [releases](https://github.com/hayd/deno-lambda/releases) page.
<img width="1249" alt="Screen Shot 2020-02-17 at 14 43 05" src="https://user-images.githubusercontent.com/1931852/74705319-50417e80-51c8-11ea-8082-329ff3e7ea9f.png">

2. Create a _layer_ and upload `deno-lambda-layer.zip`.
2. Now the serverless repo will `CREATE` the deno layer:

<img width="828" alt="Create layer" src="https://user-images.githubusercontent.com/1931852/68455786-0b618100-01b1-11ea-988a-ba3a5810a8d5.png">
<img width="1250" alt="Screen Shot 2020-02-17 at 14 43 44" src="https://user-images.githubusercontent.com/1931852/74705318-4e77bb00-51c8-11ea-8d4d-3b3282adb2ea.png">

<img width="1122" alt="Layer created" src="https://user-images.githubusercontent.com/1931852/68455785-0b618100-01b1-11ea-9686-8ebefe3b00ff.png">
Click on "View Cloudformation Stack":

Note its Version ARN.
<img width="1157" alt="Screen Shot 2020-02-17 at 14 46 52" src="https://user-images.githubusercontent.com/1931852/74705317-4d468e00-51c8-11ea-845c-1a2e5bf8bb3d.png">

3. Create a lambda function from scratch with runtime "provide your own bootstrap".
On the "Outputs" tab copy the `LayerArn`.

3. Visit the [lambda console](https://console.aws.amazon.com/lambda/).
Create a lambda function from scratch with runtime "provide your own bootstrap".

<img width="1295" alt="Create function" src="https://user-images.githubusercontent.com/1931852/68455784-0ac8ea80-01b1-11ea-93ba-8c64a4e487e7.png">

Expand All @@ -22,10 +34,16 @@ Note its Version ARN.

<img width="820" alt="Add layer to function" src="https://user-images.githubusercontent.com/1931852/68455782-0ac8ea80-01b1-11ea-9a1b-0a87f8052c25.png">

5. Upload deno-lambda-example.zip as function code.
5. Upload the latest [deno-lambda-example.zip](https://github.com/hayd/deno-lambda/releases)
as function code.

<img width="1300" alt="Upload function code" src="https://user-images.githubusercontent.com/1931852/68455780-0ac8ea80-01b1-11ea-87ee-164abe110c77.png">

6. "Save". "Test" (use the default event).

<img width="1277" alt="Execution successful" src="https://user-images.githubusercontent.com/1931852/70288824-bb61e400-1787-11ea-95a6-61bb3a260c05.png">

---

_To "roll your own", without SAR, see the earlier version of this
[QUICK-START.md](https://github.com/hayd/deno-lambda/blob/56d8b4e4030c0096f7b5c589ba1194201e2f97dc/QUICK-START.md)._

0 comments on commit 91cced7

Please sign in to comment.