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

V2grad/serverless-rpi-banner-adapter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published