Skip to content

mallowlabs/slack-unfurling-esa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

slack-unfurling-esa

A Slack unfruling Lambda function for esa.io. 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 your.esa.io.

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-esa
$ bundle install --path vendor/bundle --without test
$ 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-esa \
    --capabilities CAPABILITY_IAM \
    --parameter-overrides \
      EsaAccessToken=your-token \
      SlackOauthAccessToken=your-slack-oauth-token

Confirm your endpoint url.

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

Slack side

Input your endpoint url to Request URL in Event Subscriptions.

Click Save Changes.

About

A Slack unfruling Lambda function for esa.io

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages