Answering the hard questions w/ Clojurescript, AWS Lambda & Slack
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


Assuming the project file contains an IAM role capable of executing further Lambda functions:

$ lein cljs-lambda deploy

Running will use the AWS CLI to create an API Gateway endpoint which accepts Slack's slash command notifications:

$ ./ [--function-name yt-eliza-gateway --name yt-eliza --profile default]

The URL output by the shell script can be used as a POST target, invoking your Lambda function with a JSON object constructed from the form parameters submitted by Slack.

The API will be tied to the $LATEST version of your Lambda function - subsequent cljs-lambda deploy invocations will cause accesses of the exposed API Gateway endpoint to invoke the most recently deployed code.