Skip to content
This repository was archived by the owner on Apr 30, 2024. It is now read-only.

Latest commit

 

History

History
27 lines (18 loc) · 1.39 KB

File metadata and controls

27 lines (18 loc) · 1.39 KB

RPI-BANNER Adatper on AWS Lambda

A Serverless version for Adatper RPI-BANNER

Get started

  1. Read this tutorial from AWS.

  2. You need to notice that if you let AWS to handle the route for you, you need to write the velocity template by yourself in Mapping section. (In section Create a GET Method with Query Parameters to Call the Lambda Function)

Mapping template example (application/json):

{
   "terms": "$input.params('terms')"
}

So you can get this params in event variable.

More

  • Here I put two function in the same repo for convenience. So for two routes here I upload the same code and export two different handler which you can change in the inline code editor
  • Before you upload this repo to AWS Lambda, you need to include node_modules. Read this tutorial
  • You may need to increase the time limit (at least 5s)
  • You may also want to learn something about handler here
  • If you encountered Missing Authentication Token, check this out.