{"id":33057109,"url":"https://github.com/mxco86/aws-sns-slack-notifier","last_synced_at":"2026-02-27T21:01:46.558Z","repository":{"id":89406499,"uuid":"191970620","full_name":"mxco86/aws-sns-slack-notifier","owner":"mxco86","description":"Send SNS messages to a Slack channel","archived":false,"fork":false,"pushed_at":"2019-07-05T10:59:41.000Z","size":21,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-11-14T04:01:17.081Z","etag":null,"topics":["aws","aws-lambda","aws-sam","aws-sns","golang","slack"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mxco86.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2019-06-14T15:55:40.000Z","updated_at":"2019-07-05T10:59:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"1e9b91b5-207c-4982-a3af-41d36812fb80","html_url":"https://github.com/mxco86/aws-sns-slack-notifier","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mxco86/aws-sns-slack-notifier","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mxco86%2Faws-sns-slack-notifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mxco86%2Faws-sns-slack-notifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mxco86%2Faws-sns-slack-notifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mxco86%2Faws-sns-slack-notifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mxco86","download_url":"https://codeload.github.com/mxco86/aws-sns-slack-notifier/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mxco86%2Faws-sns-slack-notifier/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29913655,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-27T19:37:42.220Z","status":"ssl_error","status_checked_at":"2026-02-27T19:37:41.463Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","aws-lambda","aws-sam","aws-sns","golang","slack"],"created_at":"2025-11-14T04:00:43.768Z","updated_at":"2026-02-27T21:01:46.546Z","avatar_url":"https://github.com/mxco86.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AWS SNS Slack Notifier\n\n## What Does This Do?\nA simple Lambda to receive messages from CodePipeline, format the details into\na readable Slack message and post the message to a Slack instance.\n\n## Configuration\n\nThe Slack token, channel and posting username must be configured via\nenvironment variables in the Lambda instance. Values for these variables can\nbe added to the CloudFormation stack via the SAM configuration file before\nbuilding\n\n| Env Var  | Purpose                                                 |\n|----------|---------------------------------------------------------|\n| CHANNEL  | Internal id of the Slack channel to post the message to |\n| USERNAME | Name under which the message will be posted             |\n| TOKEN    | Legacy token with which to access the Slack API         |\n\n## Build and Deployment\nThe Go binary must be built before deployment with the correct\ncompilation flags for Lambda execution\n\n```sh\n# Build Go binary for Lambda execution\nGOOS=linux go build -ldflags=\"-s -w\"\n```\n\nThe Lambda stack is defined in a SAM configuration and can be built and\ndeployed using the standard SAM commands. The S3 bucket that holds the\ndeployment package can be any existing bucket.\n\n```sh\n# Stack creation\nsam package --template-file sam.yaml --s3-bucket ${DeploymentBucketName} --output-template-file sam-pkg.yaml\nsam deploy --template-file ./sam-pkg.yaml --stack-name ${StackName} --capabilities CAPABILITY_IAM\n\n# Stack deletion\naws cloudformation delete-stack --stack-name ${StackName}\n```\n\n## Testing\nThe code can be tested locally using the standard SAM commands or directly\nusing a lambci docker container\n\n```sh\n# Run locally in docker container (after building and from the root directory)\ndocker run --rm -v \"$PWD\":/var/task \\\n       --env CHANNEL=\"A Slack Channel ID\" \\\n       --env USERNAME=\"An Arbitrary Username to Post As\" \\\n       --env TOKEN=\"A Slack Legacy API Token\" \\\n       lambci/lambda:go1.x aws-sns-slack-notifier \"$(\u003c ./test_input)\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmxco86%2Faws-sns-slack-notifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmxco86%2Faws-sns-slack-notifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmxco86%2Faws-sns-slack-notifier/lists"}