{"id":15783569,"url":"https://github.com/timlrx/aws-notification-lambda","last_synced_at":"2026-05-04T20:37:47.116Z","repository":{"id":66140784,"uuid":"508993518","full_name":"timlrx/aws-notification-lambda","owner":"timlrx","description":"Simple Lambda function to send notification to Discord or Slack. Can be used standalone or as an SNS subscriber.","archived":false,"fork":false,"pushed_at":"2022-09-08T06:58:03.000Z","size":31,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-05T08:05:01.671Z","etag":null,"topics":["aws-lambda","discord","lambda","slack","sns","webhook"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/timlrx.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":"2022-06-30T08:20:07.000Z","updated_at":"2025-02-14T08:04:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"4cd7944e-5038-43df-8750-45a465648652","html_url":"https://github.com/timlrx/aws-notification-lambda","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/timlrx/aws-notification-lambda","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timlrx%2Faws-notification-lambda","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timlrx%2Faws-notification-lambda/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timlrx%2Faws-notification-lambda/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timlrx%2Faws-notification-lambda/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timlrx","download_url":"https://codeload.github.com/timlrx/aws-notification-lambda/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timlrx%2Faws-notification-lambda/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32624579,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"ssl_error","status_checked_at":"2026-05-04T10:08:02.005Z","response_time":58,"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-lambda","discord","lambda","slack","sns","webhook"],"created_at":"2024-10-04T19:42:22.922Z","updated_at":"2026-05-04T20:37:47.101Z","avatar_url":"https://github.com/timlrx.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AWS Notification Lambda\n\nA simple lambda function to send a notification to Discord or Slack. Also works with SNS, in which case `webhookUrl` and `statusCode` would be MessageAttributes.\n\n## Discord\n\n![discord-notification](./sample-discord.png)\n\n### Deploy\n\n```\ncreate_function.sh notify_discord\n```\n\n### Update\n\n```\nupdate_function.sh notify_discord\n```\n\n### Usage\n\n1. Generate a [basic execution lambda role](https://docs.aws.amazon.com/lambda/latest/dg/lambda-intro-execution-role.html) and set the `ROLE_ARN` environment variable to it.\n2. Generate a [Discord webhook URL](https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks). Payload `webhookUrl` should correspond to the webhook URL to post the message to the right channel.\n3. Assuming you have aws config and credentials set up, run `bash create_function.sh notify_discord` to deploy the function.\n4. You can send a payload with 3 fields (`statusCode`, `title`, `body`) - If `statusCode` (optional) is not 200, a red colored message is sent with a warning sign.\n\n## Slack\n\n![slack-notification](./sample-slack.png)\n\n### Deploy\n\n```\ncreate_function.sh notify_slack\n```\n\n### Update\n\n```\nupdate_function.sh notify_slack\n```\n\n### Usage\n\n1. Generate a [basic execution lambda role](https://docs.aws.amazon.com/lambda/latest/dg/lambda-intro-execution-role.html) and set the `ROLE_ARN` environment variable to it.\n2. Generate a [Slack webhook URL](https://api.slack.com/messaging/webhooks). Payload `webhookUrl` should correspond to the webhook URL to post the message to the right channel.\n3. Assuming you have aws config and credentials set up, run `bash create_function.sh notify_discord` to deploy the function.\n4. You can send a payload with 3 fields (`statusCode`, `title`, `body`) - If `statusCode` (optional) is not 200, a red colored message is sent with a warning sign. `body` accepts markdown.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimlrx%2Faws-notification-lambda","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimlrx%2Faws-notification-lambda","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimlrx%2Faws-notification-lambda/lists"}