This app, deployed with serverless, intercepts webhooks from trello. It filters the webhooks to those that correspond to moving a trello card to a list with a given modelId. Depending on the webhook, a request to a specific Zap in Zapier is sent.
Deploy the app: sls deploy [--stage production]
If the --stage
option is not used, the default stage is dev
Above command will require recreating any webhooks pointing to this app, since the URL will change
Update a function of the app without redeploying: sls deploy -f scopeTracker
Above command does NOT require recreating any webhooks, since the URL will remain the same.
Use serverless invoke -f myFunction -l
to test your AWS Lambda Functions on AWS
Remove the app: sls remove
See URLs of deployed apps for a given AWS profile (e.g. serverless-admin): sls deploy --profile serverless-agent
See app logs: sls logs -f scopeTracker -t
Serverless commands cheatsheet
- Run the app in debug mode (F5 in VSC)
- Expose a public URL using ngrok (
./ngrok http 3000
) - Create a trello webhook with the public URL
Switch AWS user profile: export AWS_PROFILE="serverless-agent"