This repo is for multi-region AWS Lambda Functions used in the Edge app.
Deployment for three regions is handled when a push or merge occurs on the main
branch. This is handled by the a GitHub Action: ./.github/workflows/build-me.yaml
Deploy all three regions in one hit
npm run deploy
The default region is us-east-1
. Using the below deploys to the default region.
serverless deploy
To deploy to additional regions use the below.
serverless deploy --region eu-central-1
serverless deploy --region us-west-1
Each Lambda is deployed to a region. The region also requires a custom domain and ACM certificate mapping. Each API can then be used by Route 53 which routes traffic by geographical A records in Hosted Zones.