https://github.com/juntaki/firestarter-sqs-proxy
Proxy for Slack interactive message using AWS API Gateway and SQS
https://github.com/juntaki/firestarter-sqs-proxy
slack slack-bot
Last synced: 2 months ago
JSON representation
Proxy for Slack interactive message using AWS API Gateway and SQS
- Host: GitHub
- URL: https://github.com/juntaki/firestarter-sqs-proxy
- Owner: juntaki
- Created: 2018-02-28T23:51:16.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-01T15:38:54.000Z (over 8 years ago)
- Last Synced: 2025-03-18T19:43:25.025Z (over 1 year ago)
- Topics: slack, slack-bot
- Language: Go
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# firestarter-sqs-proxy
[](https://hub.docker.com/r/juntaki/firestarter-sqs-proxy/)
Even if you are in a firewall, you can use [Interactive messages](https://api.slack.com/interactive-messages).
AWS API Gateway and SQS queue Slack request on AWS. firestarter-sqs-proxy will dequeue them and regenerate POST requests inside the firewall.
## Lambda setting
Copy and paste `lambda.py` to Lambda, and change URL to your SQS one.
## API Gatway setting
Set API Gateway's `application/x-www-form-urlencoded` maping to the following.
~~~
{
"body" : $input.json('$')
}
~~~
## Run
~~~
docker run \
-e POST_URL=http://xxxxxxx \
-e AWS_ACCESS_KEY_ID=AKIAxxxx \
-e AWS_SECRET_ACCESS_KEY=xxxxxxx \
-e SQS_URL=https://sqs.xxxxxx.amazonaws.com/xxxxxxxxxx/xxxxxxxx \
-e AWS_REGION=xxxxxxxx \
juntaki/firestarter-sqs-proxy
~~~