{"id":13820356,"url":"https://github.com/dtan4/ec2-event-slack-notifier","last_synced_at":"2025-05-16T07:34:01.827Z","repository":{"id":67729543,"uuid":"61052298","full_name":"dtan4/ec2-event-slack-notifier","owner":"dtan4","description":"AWS Lambda function / Docker image to notify EC2 Scheduled Events to Slack","archived":true,"fork":false,"pushed_at":"2018-01-23T05:25:15.000Z","size":155,"stargazers_count":10,"open_issues_count":0,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-22T15:49:58.271Z","etag":null,"topics":["ec2","ec2-scheduled-events","lambda","serverless","slack"],"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/dtan4.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":"2016-06-13T16:30:58.000Z","updated_at":"2023-01-28T08:51:09.000Z","dependencies_parsed_at":"2023-06-26T23:37:26.900Z","dependency_job_id":null,"html_url":"https://github.com/dtan4/ec2-event-slack-notifier","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/dtan4%2Fec2-event-slack-notifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dtan4%2Fec2-event-slack-notifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dtan4%2Fec2-event-slack-notifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dtan4%2Fec2-event-slack-notifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dtan4","download_url":"https://codeload.github.com/dtan4/ec2-event-slack-notifier/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254488835,"owners_count":22079505,"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":["ec2","ec2-scheduled-events","lambda","serverless","slack"],"created_at":"2024-08-04T08:01:01.991Z","updated_at":"2025-05-16T07:33:58.828Z","avatar_url":"https://github.com/dtan4.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# EC2 Event Slack Notifier\n\n[![Build Status](https://travis-ci.org/dtan4/ec2-event-slack-notifier.svg?branch=master)](https://travis-ci.org/dtan4/ec2-event-slack-notifier)\n\nAWS Lambda function / Docker image to notify [EC2 Scheduled Events](http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitoring-instances-status-check_sched.html) to Slack\n\n![image](images/slack.png)\n\nYou can install this function as...\n\n- [Serverless](https://serverless.com/) function\n- a part of [Apex](http://apex.run/) project\n- standalone function\n- Kubernetes CronJob\n\n## Usage\n\n### Environment variables\n\n|key|description|\n|---|-----------|\n|`AWS_ACCESS_KEY_ID`|AWS access key ID|\n|`AWS_SECRET_ACCESS_KEY`|AWS secret access key|\n|`AWS_REGION`|AWS region|\n|`WEBHOOK_URL`|Slack webhook URL|\n|`TZ`|timezone ([tz database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) zone name) e.g., `Asia/Tokyo`|\n\n### 1. Serverless function\n\n```sh-session\n$ git clone https://github.com/dtan4/ec2-event-slack-notifier.git\n$ cd ec2-event-slack-notifier\n$ yarn\n$ cp serverless.yml.example serverless.yml\n$ vim serverless.yml\n$ npm run deploy\n```\n\n### 2. Apex project\n\nAdd ec2-event-slack-notifier to your Apex project:\n\n```bash\n$ git submodule add https://github.com/dtan4/ec2-event-slack-notifier.git functions/ec2-event-slack-notifier\n```\n\nDeploy it:\n\n```bash\n$ apex deploy ec2-event-slack-notifier\n```\n\n### 3. Standalone\n\nPreparing... :construction_worker:\n\n### 4. Kubernetes CronJob\n\nSet these Secrets:\n\n|name|key|description|\n|----|---|-----------|\n|`dotenv`|`AWS_ACCESS_KEY_ID`|AWS access key ID|\n|`dotenv`|`AWS_SECRET_ACCESS_KEY`|AWS secret access key|\n|`dotenv`|`AWS_REGION`|AWS region|\n|`dotenv`|`WEBHOOK_URL`|Slack webhook URL|\n|`dotenv`|`TZ`|timezone ([tz database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) zone name) e.g., `Asia/Tokyo`|\n\ndeploy CronJob resource:\n\n```bash\nkubectl create -f kubernetes/cronjob.yaml [-n NAMESPACE]\n```\n\n`ec2-event-slack-notifier` Job will be invoked at 0:30 GMT in default.\n\n## Author\n\nDaisuke Fujita (@dtan4)\n\n## License\n\n[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdtan4%2Fec2-event-slack-notifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdtan4%2Fec2-event-slack-notifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdtan4%2Fec2-event-slack-notifier/lists"}