UPSTASH_REDIS_REST_URL
and
UPSTASH_REDIS_REST_TOKEN
for the next steps.
npx serverless
and select the AWS - Node.js - HTTP API
handler.js
as below and replace UPSTASH_REDIS_REST_URL
and
UPSTASH_REDIS_REST_TOKEN
:
npx serverless deploy
The endpoint of the AWS Lambda function will be printed.