{"id":15481088,"url":"https://github.com/chriszarate/slack-events-sns-lambda","last_synced_at":"2026-04-12T22:46:03.287Z","repository":{"id":144724766,"uuid":"89079785","full_name":"chriszarate/slack-events-sns-lambda","owner":"chriszarate","description":"Provides a connector between the Slack Events API and AWS SNS, powered by AWS Lambda","archived":false,"fork":false,"pushed_at":"2017-04-23T20:45:33.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-02T14:44:15.690Z","etag":null,"topics":["aws-lambda","aws-sns","slack","slack-api","slack-bot","slack-events-api"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chriszarate.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-04-22T15:29:10.000Z","updated_at":"2017-04-22T22:53:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"a149cf0a-674a-4d4f-9f37-5dedb17313be","html_url":"https://github.com/chriszarate/slack-events-sns-lambda","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chriszarate%2Fslack-events-sns-lambda","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chriszarate%2Fslack-events-sns-lambda/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chriszarate%2Fslack-events-sns-lambda/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chriszarate%2Fslack-events-sns-lambda/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chriszarate","download_url":"https://codeload.github.com/chriszarate/slack-events-sns-lambda/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246045585,"owners_count":20714801,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws-lambda","aws-sns","slack","slack-api","slack-bot","slack-events-api"],"created_at":"2024-10-02T05:01:21.602Z","updated_at":"2026-04-12T22:45:58.245Z","avatar_url":"https://github.com/chriszarate.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Slack Events to SNS via AWS Lambda\n\nThis repo provides a [Slack Events API][events-api] endpoint on AWS API Gateway\nand Lambda to process Slack events. It handles the endpoint verification and\nthen publishes the events to SNS.\n\n## Configuration\n\nPopulate `.env` in the root of the repo:\n\n```\nAWS_SNS_TOPIC_ARN_PREFIX=arn:aws:sns:us-east-1:11111111:slack-events-\nSLACK_APP_VERIFICATION_TOKEN=token\nSLACK_MACHINE_USER_NAME=mybot\n```\n\n## Creating and updating the endpoint\n\n```\nclaudia create --name my-slack-endpoint --region us-east-1 --api-module index\n```\n\n[Claudia][claudia] will print out the endpoint base URL. Append `/messages` to\nthe end and provide it to Slack in the \"Event Subscriptions\" section of your app\nconfiguration.\n\nUpdate the endpoint with:\n\n```\nclaudia update\n```\n\n## Enabling commands\n\nThis endpoint expects to receive messages in a specific format (where `bot-name`\nis configured as `SLACK_MACHINE_USER_NAME` in `.env`):\n\n```\nbot-name verb command\n```\n\nor\n\n```\n@bot-name verb command\n```\n\nAny messages not matching that format will be ignored.\n\nAdd your verb to the `supportedBotVerbs` array in `src/process-message` and\ncreate a corresponding SNS topic. If your `AWS_SNS_TOPIC_ARN_PREFIX` is\n`arn:aws:sns:us-east-1:11111111:slack-events-` and your verb is `ping`, then the\nARN of the SNS topic you create should be:\n\n```\narn:aws:sns:us-east-1:11111111:slack-events-ping\n```\n\nSome additional information related to the parsed command will be added to the\nevent, and the result is published to the SNS topic.\n\n## That's it?\n\nThat's it. But now you can write any number of Lambda functions or other code\nthat subscribes to those SNS topics.\n\n[events-api]: https://api.slack.com/events-api\n[challenge]: https://api.slack.com/events/url_verification\n[app-config]: https://api.slack.com/slack-apps\n[claudia]: https://claudiajs.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchriszarate%2Fslack-events-sns-lambda","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchriszarate%2Fslack-events-sns-lambda","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchriszarate%2Fslack-events-sns-lambda/lists"}