Skip to content

Latest commit

 

History

History

lambdas

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

As of June 2024, we plan to migrate the rematch service from AWS Lambda to Cloudflare Worker. During this time, we need to maintain two build and deploy pipelines in parallel.

Staging & production traffic may be diverted to either platform, without a deployment, by updating the REMATCH_LAMBDA_URL env var in the CMS app.

initial one-time set up

AWS Lambda - build & deploy

rematching$ ./deploy.sh <staging|prod>

Cloudflare Worker - build & deploy

  1. cd cloudflare_rematch && nvm use ensure you are using Node 20
  2. export PATH=./node_modules/.bin:$PATH may be necessary to access the wrangler executable
  3. [Optional] Open the Cloudflare worker UI in a browser, for monitoring.
  4. cloudflare_rematch$ ./deploy.sh <staging|prod>
  5. [Optional] Browse the lambdas/ directory in Postman, which contains idempotent POST requests with known-working paylods for smoketesting in any environment.