# AWS EC2 AutoScaling Instance Running Scheduler
This is an AWS CDK Construct to make EC2 AutoScaling instance running schedule (only running while working hours(start/stop)).
But only capacity min value is 0 for the AutoScalingGroup.
## Resources
This construct creating resource list.
* EventBridge Scheduler execution role
* EventBridge Scheduler
## Install
### TypeScript
```shell
npm install aws-ec2-auto-scaling-instance-running-scheduler
```
or
```shell
yarn add aws-ec2-auto-scaling-instance-running-scheduler
```
### Python
```shell
pip install aws-ec2-auto-scaling-instance-running-scheduler
```
## Example
```shell
npm install aws-ec2-auto-scaling-instance-running-scheduler
```
```python
import { Ec2AutoScalingInstanceRunningScheduler } from 'aws-ec2-auto-scaling-instance-running-scheduler';
new Ec2AutoScalingInstanceRunningScheduler(stack, 'Ec2AutoScalingInstanceRunningScheduler', {
targets: [
{
groupName: 'example-scaling-group',
runningDesiredCapacity: 2,
startSchedule: {
timezone: 'UTC',
},
stopSchedule: {
timezone: 'UTC',
},
},
],
});
```
## License
This project is licensed under the Apache-2.0 License.
Raw data
{
"_id": null,
"home_page": "https://github.com/yicr/aws-ec2-auto-scaling-instance-running-scheduler.git",
"name": "aws-ec2-auto-scaling-instance-running-scheduler",
"maintainer": "",
"docs_url": null,
"requires_python": "~=3.7",
"maintainer_email": "",
"keywords": "",
"author": "yicr<yicr@users.noreply.github.com>",
"author_email": "",
"download_url": "https://files.pythonhosted.org/packages/0f/f3/c87f7505e5f2947972299f24de3bf182a7012d6e5314b19ff61321ea8ebf/aws-ec2-auto-scaling-instance-running-scheduler-0.2.5.tar.gz",
"platform": null,
"description": "# AWS EC2 AutoScaling Instance Running Scheduler\n\nThis is an AWS CDK Construct to make EC2 AutoScaling instance running schedule (only running while working hours(start/stop)).\nBut only capacity min value is 0 for the AutoScalingGroup.\n\n## Resources\n\nThis construct creating resource list.\n\n* EventBridge Scheduler execution role\n* EventBridge Scheduler\n\n## Install\n\n### TypeScript\n\n```shell\nnpm install aws-ec2-auto-scaling-instance-running-scheduler\n```\n\nor\n\n```shell\nyarn add aws-ec2-auto-scaling-instance-running-scheduler\n```\n\n### Python\n\n```shell\npip install aws-ec2-auto-scaling-instance-running-scheduler\n```\n\n## Example\n\n```shell\nnpm install aws-ec2-auto-scaling-instance-running-scheduler\n```\n\n```python\nimport { Ec2AutoScalingInstanceRunningScheduler } from 'aws-ec2-auto-scaling-instance-running-scheduler';\n\nnew Ec2AutoScalingInstanceRunningScheduler(stack, 'Ec2AutoScalingInstanceRunningScheduler', {\n targets: [\n {\n groupName: 'example-scaling-group',\n runningDesiredCapacity: 2,\n startSchedule: {\n timezone: 'UTC',\n },\n stopSchedule: {\n timezone: 'UTC',\n },\n },\n ],\n});\n```\n\n## License\n\nThis project is licensed under the Apache-2.0 License.\n",
"bugtrack_url": null,
"license": "Apache-2.0",
"summary": "AWS EC2 AutoScaling Instance Running Scheduler",
"version": "0.2.5",
"project_urls": {
"Homepage": "https://github.com/yicr/aws-ec2-auto-scaling-instance-running-scheduler.git",
"Source": "https://github.com/yicr/aws-ec2-auto-scaling-instance-running-scheduler.git"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "93db1e2309dcfec2bd828b799369d4bf130a01fbf2a4b090e0eb61795e21753f",
"md5": "84b5f39758bb1cb8f7d1bd85d459522e",
"sha256": "2b432d7a932a446ffa832d27e589d0da5951e923cd796aa963b87e9591c8588c"
},
"downloads": -1,
"filename": "aws_ec2_auto_scaling_instance_running_scheduler-0.2.5-py3-none-any.whl",
"has_sig": false,
"md5_digest": "84b5f39758bb1cb8f7d1bd85d459522e",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "~=3.7",
"size": 30624,
"upload_time": "2023-07-17T19:20:38",
"upload_time_iso_8601": "2023-07-17T19:20:38.106014Z",
"url": "https://files.pythonhosted.org/packages/93/db/1e2309dcfec2bd828b799369d4bf130a01fbf2a4b090e0eb61795e21753f/aws_ec2_auto_scaling_instance_running_scheduler-0.2.5-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "0ff3c87f7505e5f2947972299f24de3bf182a7012d6e5314b19ff61321ea8ebf",
"md5": "e2a5b5ca1a6f492d141231a121567acd",
"sha256": "3df11a66e9519707947a9b25518846b18dab2a14d7f9267c74c2fc7d3660fbac"
},
"downloads": -1,
"filename": "aws-ec2-auto-scaling-instance-running-scheduler-0.2.5.tar.gz",
"has_sig": false,
"md5_digest": "e2a5b5ca1a6f492d141231a121567acd",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "~=3.7",
"size": 31378,
"upload_time": "2023-07-17T19:20:39",
"upload_time_iso_8601": "2023-07-17T19:20:39.578521Z",
"url": "https://files.pythonhosted.org/packages/0f/f3/c87f7505e5f2947972299f24de3bf182a7012d6e5314b19ff61321ea8ebf/aws-ec2-auto-scaling-instance-running-scheduler-0.2.5.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-07-17 19:20:39",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "yicr",
"github_project": "aws-ec2-auto-scaling-instance-running-scheduler",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "aws-ec2-auto-scaling-instance-running-scheduler"
}