{"id":17295154,"url":"https://github.com/adam-fowler/sns-to-slack-lambda","last_synced_at":"2025-04-14T11:55:52.282Z","repository":{"id":109173935,"uuid":"270258849","full_name":"adam-fowler/sns-to-slack-lambda","owner":"adam-fowler","description":"Swift Lambda for publishing SNS messages to Slack","archived":false,"fork":false,"pushed_at":"2023-09-14T06:41:05.000Z","size":19,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-14T11:55:27.536Z","etag":null,"topics":["lambda","slack","sns","swift","swift-aws-lambda-runtime"],"latest_commit_sha":null,"homepage":"","language":"Swift","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/adam-fowler.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":"2020-06-07T09:38:30.000Z","updated_at":"2024-01-14T21:22:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"90b96a28-04dc-4f15-a69e-06cf5d308488","html_url":"https://github.com/adam-fowler/sns-to-slack-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/adam-fowler%2Fsns-to-slack-lambda","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adam-fowler%2Fsns-to-slack-lambda/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adam-fowler%2Fsns-to-slack-lambda/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adam-fowler%2Fsns-to-slack-lambda/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adam-fowler","download_url":"https://codeload.github.com/adam-fowler/sns-to-slack-lambda/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248878020,"owners_count":21176242,"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":["lambda","slack","sns","swift","swift-aws-lambda-runtime"],"created_at":"2024-10-15T11:09:36.064Z","updated_at":"2025-04-14T11:55:52.232Z","avatar_url":"https://github.com/adam-fowler.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SNS to Slack\n\nThis is a Swift based AWS Lambda that will publish Simple Notification System (SNS) messages to a Slack channel.\n\n## Setup Slack incoming webhook\n\nClick [here](https://api.slack.com/apps) to go to the Slack Apps setup page. Click on \"Create New App\". Provide a name for your app and choose the workspace you want to post to. Click on \"Incoming Webhooks\". Click the switch to activate incoming webhooks. Click on \"Add new webhook\". Choose a channel to post to and click \"Allow\". You now have a webhook URL. You can go to do the bottom of the \"Incoming Webhooks\" page and copy the URL.\n\n## Build and install\n\nBefore continuing you will need [Docker Desktop for Mac](https://docs.docker.com/docker-for-mac/install/) installed. You will also need the AWS command line interface and AWS SAM installed. You can install `awscli` and `sam` with Homebrew.\n```\nbrew tap aws/tap\nbrew install awscli\nbrew install aws-sam-cli\n```\nThere are two stages to getting the Lambda installed.\n\nThe install process can be broken into two stages, each with its own shell script.\n1) build-and-package.sh: Building and packaging the lambda. This uses the `archive` command plugin that comes with the swift-aws-lambda-runtime\n2) deploy.sh: Deploying the packaged Lambda to AWS using AWS SAM. The first time you run this you should add the command line parameter `--guided`. This will ask a number of questions about how you want the deployment to work.\n\n## Link to Slack\n\nThe Lambda uses the Environment variable SLACK_HOOK_URL to get the URL to post to. You need to edit the SAM `deploy.yml`` to point this environment variable to the correct URL.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadam-fowler%2Fsns-to-slack-lambda","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadam-fowler%2Fsns-to-slack-lambda","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadam-fowler%2Fsns-to-slack-lambda/lists"}