Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/d6y/aws-lambda-scala-slack

Example Slack integration via Lambda and AWS API Gateway
https://github.com/d6y/aws-lambda-scala-slack

Last synced: about 1 month ago
JSON representation

Example Slack integration via Lambda and AWS API Gateway

Awesome Lists containing this project

README

        

# Example Slack Command via AWS Lambda using Scala

This example is not far from the echo example [that AWS provide](https://aws.amazon.com/about-aws/whats-new/2015/12/aws-lambda-launches-slack-integration-blueprints/), but in Scala.

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

![screenshot of the time command](example.png)

## 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](http://underscore.io/blog/posts/2016/02/01/aws-lambda.html) on this.