aws-lambda-scala-slack icon indicating copy to clipboard operation
aws-lambda-scala-slack copied to clipboard

Example Slack integration via Lambda and AWS API Gateway

Example Slack Command via AWS Lambda using Scala

This example is not far from the echo example that AWS provide, but in Scala.

It does a little bit more, in that it gives a world clock via /time:

screenshot of the time command

To install into an existing Lambda/API Gateway environment

sbt assembly

...and deploy the JAR to your Lambda environment. The function name is: example.Slack::time

I've written a blog post on this.