saka1 / slack-webhook-gatekeeper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

slack-webhook-gatekeeper

Create your receiver on AWS to proxy webhook from Slack.

Usage

yarn install
cd webhook-proxy && yarn install && cd ../

# set environment variables used in webhook-proxy/serverless.yml

# deploy
./serverless.sh webhook-proxy deploy -v

Example config

This is a example to register a service hoge:

aws ssm put-parameter --name $BACKEND_SERVICE_PARAMETER_STORE_ROOT/hoge --type String --value 1
aws ssm put-parameter --name $BACKEND_SERVICE_PARAMETER_STORE_ROOT/hoge/url --type String --value example.com # upstream address
aws ssm put-parameter --name $BACKEND_SERVICE_PARAMETER_STORE_ROOT/hoge/signingSecret --type String --value <slack's signing secret>

Then, we can use https://<api-gateway-host>/slack/webhooks/hoge as Webhook endpoint.

About


Languages

Language:JavaScript 94.2%Language:Shell 5.8%