Skip to content

Code updates for Serverless

coveros-matt-taylor edited this page Jan 10, 2022 · 1 revision

You'll need these code snippets to update your code to make serverless calls.

Images can be found here: https://microservicehandson.s3.amazonaws.com/rmills-cats.jpg

Exercise:

  1. edit lambda/index.js - add your name to the "LAMBDA!" string
  2. Run script: ../uploadlambda.sh richmills # firstnamelastname patter

Test your lambda: (replace microservice with firstnamelastname)

curl https://iqyfvyn6r4.execute-api.us-east-1.amazonaws.com/dev/microservice
Clone this wiki locally