Skip to content
A Slack unfruling Lambda function for Trello
Ruby
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
slack-unfurling-trello
.gitignore
LICENSE
README.md
template.yaml

README.md

slack-unfurling-trello

A Slack unfruling Lambda function for Trello. It based on AWS SAM(Serverless application mode).

Requirements

  • AWS CLI
  • SAM CLI

Deploy

Slack side

1. Create Slack App

https://api.slack.com/apps

2. Event Subscriptions setting

Enable Events Set to On

App Unfurl Domains Add trello.com.

Click Save Changes.

3. OAuth & Permissions setting

Added links:write to Scopes.

Click Save Changes.

Click Install App to Workspace.

Remember your OAuth Access Token.

Lambda side

$ aws s3 mb s3://your-sandbox --region ap-northeast-1
$ cd slack-unfurling-trello
$ bundle install --path vendor/bundle
$ sam package \
    --template-file template.yaml \
    --output-template-file serverless-output.yaml \
    --s3-bucket your-sandbox
$ sam deploy \
    --template-file serverless-output.yaml \
    --stack-name your-slack-unfurling-trello \
    --capabilities CAPABILITY_IAM \
    --parameter-overrides \
      TrelloDeveloperPublicKey=your-key \
      TrelloMemberToken=your-your-token \
      SlackOauthAccessToken=your-slack-oauth-token

Confirm your endpoint url.

You can get trello developer public key from https://trello.com/1/appKey/generate .

$ aws cloudformation describe-stacks --stack-name your-slack-unfurling-trello --region ap-northeast-1

Slack side

Input your endpoint url to Request URL in Event Subscriptions.

Click Save Changes.

You can’t perform that action at this time.