Lambda package for Recurlybot, a Slack bot to notify new Recurly subscriptions.
An AWS lambda function that given a POST request from Recurly webhooks publishes a message in a the configured Slack channel via a Slack Incomming Webhook
- Rename
project-dist.json
asproject.json
- Edit the AWS role and the environment variables
SLACK_CHANNEL
: the Slack channel where you want to puslish the notifications.SLACK_URL
: Slack incomming webhook url.PROFILE_URL
: Customer information page in case you want to link the notification to your CRM or to the Recurly account page.
- Setup AWS credentials for Apex, see http://apex.run/#aws-credentials
npm install
apex deploy
- Now visit your AWS Lambda dashboard and connect the Lambda to API Gateway
- Get the API Gateway public endpoint and setup it in the Recurly Webhooks configuration