{"id":16323744,"url":"https://github.com/shavo007/lambda-stop-rds","last_synced_at":"2026-04-24T16:02:35.536Z","repository":{"id":72297298,"uuid":"98621131","full_name":"shavo007/lambda-stop-rds","owner":"shavo007","description":"scheduled aws lambda function to stop RDS instances","archived":false,"fork":false,"pushed_at":"2017-09-08T11:32:37.000Z","size":29,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-14T15:16:44.978Z","etag":null,"topics":["aws","aws-lambda","aws-rds","serverless"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/shavo007.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":"2017-07-28T07:20:17.000Z","updated_at":"2020-11-06T17:16:29.000Z","dependencies_parsed_at":"2023-09-03T19:36:42.668Z","dependency_job_id":null,"html_url":"https://github.com/shavo007/lambda-stop-rds","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/shavo007/lambda-stop-rds","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shavo007%2Flambda-stop-rds","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shavo007%2Flambda-stop-rds/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shavo007%2Flambda-stop-rds/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shavo007%2Flambda-stop-rds/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shavo007","download_url":"https://codeload.github.com/shavo007/lambda-stop-rds/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shavo007%2Flambda-stop-rds/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32230421,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"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-rds","serverless"],"created_at":"2024-10-10T22:55:33.026Z","updated_at":"2026-04-24T16:02:35.521Z","avatar_url":"https://github.com/shavo007.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\n# Scheduled AWS Lambda function to stop RDS instances based on tags\n\nThis function that runs as a cron job using the serverless schedule event. For more information on schedule event check out the Serverless docs on schedule.\n\nSchedule events use the rate or cron syntax.\n\n## Cron syntax\n\n```pseudo\ncron(Minutes Hours Day-of-month Month Day-of-week Year)\n```\n\nAll fields are required and time zone is UTC only.\n\n| Field         | Values         | Wildcards     |\n| ------------- |:--------------:|:-------------:|\n| Minutes       | 0-59           | , - * /       |\n| Hours         | 0-23           | , - * /       |\n| Day-of-month  | 1-31           | , - * ? / L W |\n| Month         | 1-12 or JAN-DEC| , - * /       |\n| Day-of-week   | 1-7 or SUN-SAT | , - * ? / L # |\n| Year          | 1970-2199      | , - * /       |\n\nRead the [AWS cron expression syntax](http://docs.aws.amazon.com/lambda/latest/dg/tutorial-scheduled-events-schedule-expressions.html) docs for more info on how to setup cron\n\n\n**The function is scheduled to execute at 8AM MON-FRI (UTC time)**\n\n## Setup\n\nRun `nvm use` to get the correct version of node\n\n* Install yarn `curl -o- -L https://yarnpkg.com/install.sh | bash`\n* Install serverless globally `npn install -g serverless`\n\n## Building\nRun `yarn` after\n\n## Deploying\n\nIn order to deploy the function run:\n\n`yarn deploy:full`\n\nThere is no additional step required. Your defined schedule becomes active right away after deployment.\n\n## Usage\n\nTo test function locally and view the results run:\n\n`yarn invoke`\n\n\n### Update dependencies\n\n`yarn upgrade-interactive`\n\n\n## Blog post\n\nhttps://blog.shanelee.name/2017/07/28/how-to-save-costs-with-serverless-and-aws-lambda/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshavo007%2Flambda-stop-rds","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshavo007%2Flambda-stop-rds","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshavo007%2Flambda-stop-rds/lists"}