{"id":15466169,"url":"https://github.com/mozamimy/lambda-slack-notifier","last_synced_at":"2025-04-22T11:20:38.159Z","repository":{"id":149986355,"uuid":"156995782","full_name":"mozamimy/lambda-slack-notifier","owner":"mozamimy","description":null,"archived":false,"fork":false,"pushed_at":"2023-11-17T07:06:06.000Z","size":58,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-18T23:14:24.382Z","etag":null,"topics":["aws-lambda","serverless","slack-webhook"],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/mozamimy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2018-11-10T15:49:10.000Z","updated_at":"2023-11-02T00:53:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"dc60a5a7-1f3b-4b7a-baf0-dce0430a926b","html_url":"https://github.com/mozamimy/lambda-slack-notifier","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mozamimy%2Flambda-slack-notifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mozamimy%2Flambda-slack-notifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mozamimy%2Flambda-slack-notifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mozamimy%2Flambda-slack-notifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mozamimy","download_url":"https://codeload.github.com/mozamimy/lambda-slack-notifier/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250228696,"owners_count":21395958,"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","serverless","slack-webhook"],"created_at":"2024-10-02T01:05:17.731Z","updated_at":"2025-04-22T11:20:38.132Z","avatar_url":"https://github.com/mozamimy.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lambda-slack-notifier\n\n## About\n\nThis program sends a message to Slack when it receives like following event data published from AWS SNS topic.\n\nOption elements can be omitted from `MessageAttributes` object. In that case, this function fills omitted these options with default values of incoming-webhook.\n\n```json\n{\n  \"Records\": [\n    {\n      \"EventSource\": \"aws:sns\",\n      \"EventVersion\": \"1.0\",\n      \"EventSubscriptionArn\": \"arn:aws:sns:us-east-1::ExampleTopic\",\n      \"Sns\": {\n        \"Type\": \"Notification\",\n        \"MessageId\": \"95df01b4-ee98-5cb9-9903-4c221d41eb5e\",\n        \"TopicArn\": \"arn:aws:sns:us-east-1:123456789012:ExampleTopic\",\n        \"Subject\": \"example subject\",\n        \"Message\": \"example message\",\n        \"Timestamp\": \"1970-01-01T00:00:00.000Z\",\n        \"SignatureVersion\": \"1\",\n        \"Signature\": \"EXAMPLE\",\n        \"SigningCertUrl\": \"EXAMPLE\",\n        \"UnsubscribeUrl\": \"EXAMPLE\",\n        \"MessageAttributes\": {\n          \"Channel\": {\n            \"Type\": \"String\",\n            \"Value\": \"#nanika-channel\"\n          },\n          \"UserName\": {\n            \"Type\": \"String\",\n            \"Value\": \"nanika\"\n          },\n          \"IconEmoji\": {\n            \"Type\": \"String\",\n            \"Value\": \":rabbit:\"\n          },\n          \"Color\": {\n            \"Type\": \"String\",\n            \"Value\": \"warning\"\n          }\n        }\n      }\n    }\n  ]\n}\n```\n\n## Run locally with Docker\n\nhttps://docs.aws.amazon.com/lambda/latest/dg/images-test.html\n\n```sh\ndocker build -t lambda-slack-notifier .\ndocker run -p 9000:8080 -e SLACK_WEBHOOK=https://xxxxxxxx lambda-slack-notifier\n# In other terminal session\ncurl \"http://localhost:9000/2015-03-31/functions/function/invocations\" -d@event.example.json\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmozamimy%2Flambda-slack-notifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmozamimy%2Flambda-slack-notifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmozamimy%2Flambda-slack-notifier/lists"}