A Slack unfruling Lambda function for Redash (self hosting). It based on AWS SAM(Serverless application mode).
- AWS CLI
- SAM CLI
Enable Events
Set to On
App Unfurl Domains
Add your Redash hostname.
Click Save Changes
.
Added links:write
to Scopes
.
Click Save Changes
.
Click Install App to Workspace
.
Remember your OAuth Access Token
.
$ aws s3 mb s3://your-sandbox --region ap-northeast-1
$ cd slack-unfurling-redash
$ npm i
$ 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-redash \
--capabilities CAPABILITY_IAM \
--parameter-overrides \
BucketName=your-bucket \
RedashApiKey=your-redash-api-key \
SlackOauthToken=your-slack-oauth-token
Confirm your endpoint url.
$ aws cloudformation describe-stacks --stack-name your-slack-unfurling-redash --region ap-northeast-1
Input your endpoint url to Request URL
in Event Subscriptions
.
Click Save Changes
.
This project refered getredsah/snap. Many thanks to Redash team.