{"id":22750154,"url":"https://github.com/gammarers/aws-ec2-instance-running-schedule-stack","last_synced_at":"2025-12-24T18:37:45.011Z","repository":{"id":153285386,"uuid":"627280114","full_name":"gammarers/aws-ec2-instance-running-schedule-stack","owner":"gammarers","description":"This is an AWS CDK Construct to make EC2 instance running schedule (only running while working hours(start/stop)).","archived":false,"fork":false,"pushed_at":"2025-12-03T16:52:19.000Z","size":2563,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-06T19:49:44.308Z","etag":null,"topics":["aws","aws-cdk","cdk","notification","sheduler","stepfunctions"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gammarers.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-04-13T06:29:05.000Z","updated_at":"2025-12-03T16:48:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"e6f308a6-902f-4cfb-a2bc-7facd3b67ce5","html_url":"https://github.com/gammarers/aws-ec2-instance-running-schedule-stack","commit_stats":null,"previous_names":["gammarer/aws-ec2-instance-running-scheduler","gammarers/aws-ec2-instance-running-scheduler","gammarers/aws-ec2-instance-running-schedule-stack"],"tags_count":233,"template":false,"template_full_name":null,"purl":"pkg:github/gammarers/aws-ec2-instance-running-schedule-stack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gammarers%2Faws-ec2-instance-running-schedule-stack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gammarers%2Faws-ec2-instance-running-schedule-stack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gammarers%2Faws-ec2-instance-running-schedule-stack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gammarers%2Faws-ec2-instance-running-schedule-stack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gammarers","download_url":"https://codeload.github.com/gammarers/aws-ec2-instance-running-schedule-stack/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gammarers%2Faws-ec2-instance-running-schedule-stack/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28005408,"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","status":"online","status_checked_at":"2025-12-24T02:00:07.193Z","response_time":83,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-cdk","cdk","notification","sheduler","stepfunctions"],"created_at":"2024-12-11T04:12:38.786Z","updated_at":"2025-12-24T18:37:44.960Z","avatar_url":"https://github.com/gammarers.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AWS EC2 Instance Running Schedule Stack\n\n[![GitHub](https://img.shields.io/github/license/gammarers/aws-ec2-instance-running-schedule-stack?style=flat-square)](https://github.com/gammarers/aws-ec2-instance-running-schedule-stack/blob/main/LICENSE)\n[![npm (scoped)](https://img.shields.io/npm/v/@gammarers/aws-ec2-instance-running-schedule-stack?style=flat-square)](https://www.npmjs.com/package/@gammarers/aws-ec2-instance-running-schedule-stack)\n[![PyPI](https://img.shields.io/pypi/v/gammarers.aws-ec2-instance-running-schedule-stack?style=flat-square)](https://pypi.org/project/gammarers.aws-ec2-instance-running-schedule-stack/)\n[![Nuget](https://img.shields.io/nuget/v/Gammarers.CDK.AWS.EC2InstanceRunningScheduleStack?style=flat-square)](https://www.nuget.org/packages/Gammarers.CDK.AWS.EC2InstanceRunningScheduleStack/)\n[![GitHub Workflow Status (branch)](https://img.shields.io/github/actions/workflow/status/gammarers/aws-ec2-instance-running-schedule-stack/release.yml?branch=main\u0026label=release\u0026style=flat-square)](https://github.com/gammarers/aws-ec2-instance-running-schedule-stack/actions/workflows/release.yml)\n[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/gammarers/aws-ec2-instance-running-schedule-stack?sort=semver\u0026style=flat-square)](https://github.com/gammarers/aws-ec2-instance-running-schedule-stack/releases)\n\n[![View on Construct Hub](https://constructs.dev/badge?package=@gammarers/aws-ec2-instance-running-schedule-stack)](https://constructs.dev/packages/@gammarers/aws-ec2-instance-running-schedule-stack)\n\nThis is an AWS CDK Construct to make EC2 instance running schedule (only running while working hours(start/stop)).\n\n## Fixed\n\n- EC2 Instance\n\n## Resources\n\nThis construct creating resource list.\n\n- EventBridge Scheduler execution role\n- EventBridge Scheduler\n- Step Functions State machine\n- Step Functions State machine role\n\n## State Machine Execution Flow\n\n![](./images/state-machine.png)\n\n## Install\n\n### TypeScript\n\n#### install by npm\n\n```shell\nnpm install @gammarer/aws-ec2-instance-running-schedule-stack\n```\n\n#### install by yarn\n\n```shell\nyarn add @gammarer/aws-ec2-instance-running-schedule-stack\n```\n\n### Python\n\n```shell\npip install gammarer.aws-ec2-instance-running-schedule-stack\n```\n\n### C# / .NET\n\n```shell\ndotnet add package Gammarer.CDK.AWS.Ec2InstanceRunningScheduleStack\n```\n\n## Example\n\n```typescript\nimport { Ec2InstanceRunningScheduleStack } from '@gammarer/aws-ec2-instance-running-schedule-stack';\n\nnew EC2InstanceRunningScheduleStack(app, 'EC2InstanceRunningScheduleStack', {\n  targetResource: {\n    tagKey: 'WorkHoursRunning',\n    tagValues: ['YES'],\n  },\n  startSchedule: {\n    timezone: 'Asia/Tokyo',\n    minute: '55',\n    hour: '8',\n    week: 'MON-FRI',\n  },\n  stopSchedule: {\n    timezone: 'Asia/Tokyo',\n    minute: '5',\n    hour: '19',\n    week: 'MON-FRI',\n  },\n  notifications: { // OPTIONAL NOTIFICATION\n    emails: [  // OPTIONAL SEND EMAIL FROM SNS\n      'foo@example.com',\n      'bar@example.net',\n    ],\n  },\n});\n\n```\n\n## License\n\nThis project is licensed under the Apache-2.0 License.\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgammarers%2Faws-ec2-instance-running-schedule-stack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgammarers%2Faws-ec2-instance-running-schedule-stack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgammarers%2Faws-ec2-instance-running-schedule-stack/lists"}