aws-ec2-instance-running-scheduler


Nameaws-ec2-instance-running-scheduler JSON
Version 0.3.5 PyPI version JSON
download
home_pagehttps://github.com/yicr/aws-ec2-instance-running-scheduler.git
SummaryAWS EC2 Instance Running Scheduler
upload_time2023-07-17 19:20:46
maintainer
docs_urlNone
authoryicr<yicr@users.noreply.github.com>
requires_python~=3.7
licenseApache-2.0
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # AWS EC2 Instance Running Scheduler

This is an AWS CDK Construct to make EC2 instance running schedule (only running while working hours(start/stop)).

## Fixed

* EC2 Instance

## Resources

This construct creating resource list.

* EventBridge Scheduler execution role
* EventBridge Scheduler

## Install

### TypeScript

```shell
npm install aws-ec2-instance-running-scheduler
```

or

```shell
yarn add aws-ec2-instance-running-scheduler
```

### Python

```shell
pip install aws-ec2-instance-running-scheduler
```

## Example

```shell
npm install aws-ec2-instance-running-scheduler
```

```python
import { Ec2InstanceRunningScheduler } from 'aws-ec2-instance-running-scheduler';

new Ec2InstanceRunningScheduler(stack, 'Ec2InstanceRunningScheduler', {
  targets: [
    {
      instances: ['i-0af01c0123456789a', 'i-0af01c0123456789b'],
      startSchedule: {
        timezone: 'Asia/Tokyo',
        minute: '55',
        hour: '8',
        week: 'MON-FRI',
      },
      stopSchedule: {
        timezone: 'Asia/Tokyo',
        minute: '5',
        hour: '19',
        week: 'MON-FRI',
      },
    },
  ],
});
```

## License

This project is licensed under the Apache-2.0 License.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/yicr/aws-ec2-instance-running-scheduler.git",
    "name": "aws-ec2-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/14/1d/0ca2a0cf2ce1dcb70c7bc77b6a07fa5e7822b02d058b8efafb01b4a1bdb4/aws-ec2-instance-running-scheduler-0.3.5.tar.gz",
    "platform": null,
    "description": "# AWS EC2 Instance Running Scheduler\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\n## Install\n\n### TypeScript\n\n```shell\nnpm install aws-ec2-instance-running-scheduler\n```\n\nor\n\n```shell\nyarn add aws-ec2-instance-running-scheduler\n```\n\n### Python\n\n```shell\npip install aws-ec2-instance-running-scheduler\n```\n\n## Example\n\n```shell\nnpm install aws-ec2-instance-running-scheduler\n```\n\n```python\nimport { Ec2InstanceRunningScheduler } from 'aws-ec2-instance-running-scheduler';\n\nnew Ec2InstanceRunningScheduler(stack, 'Ec2InstanceRunningScheduler', {\n  targets: [\n    {\n      instances: ['i-0af01c0123456789a', 'i-0af01c0123456789b'],\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    },\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 Instance Running Scheduler",
    "version": "0.3.5",
    "project_urls": {
        "Homepage": "https://github.com/yicr/aws-ec2-instance-running-scheduler.git",
        "Source": "https://github.com/yicr/aws-ec2-instance-running-scheduler.git"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "bce2a4d807ec298a97ee9f5b424bbdd8b947fafc5d40265903eca8acbbd948da",
                "md5": "af074202330bf2cea9111a075621a5f8",
                "sha256": "ecfa16ba777d2567f80785b410ebb7ac12f825059211e71bb539f8f0fd65208b"
            },
            "downloads": -1,
            "filename": "aws_ec2_instance_running_scheduler-0.3.5-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "af074202330bf2cea9111a075621a5f8",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "~=3.7",
            "size": 30183,
            "upload_time": "2023-07-17T19:20:45",
            "upload_time_iso_8601": "2023-07-17T19:20:45.213903Z",
            "url": "https://files.pythonhosted.org/packages/bc/e2/a4d807ec298a97ee9f5b424bbdd8b947fafc5d40265903eca8acbbd948da/aws_ec2_instance_running_scheduler-0.3.5-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "141d0ca2a0cf2ce1dcb70c7bc77b6a07fa5e7822b02d058b8efafb01b4a1bdb4",
                "md5": "a7137d2f66210a551130dbdc350ad32f",
                "sha256": "7a2d07e6600e81f73020feae669bd6ef0c8aab8a4fd2e96a008592d06b716c01"
            },
            "downloads": -1,
            "filename": "aws-ec2-instance-running-scheduler-0.3.5.tar.gz",
            "has_sig": false,
            "md5_digest": "a7137d2f66210a551130dbdc350ad32f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "~=3.7",
            "size": 31168,
            "upload_time": "2023-07-17T19:20:46",
            "upload_time_iso_8601": "2023-07-17T19:20:46.888849Z",
            "url": "https://files.pythonhosted.org/packages/14/1d/0ca2a0cf2ce1dcb70c7bc77b6a07fa5e7822b02d058b8efafb01b4a1bdb4/aws-ec2-instance-running-scheduler-0.3.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-07-17 19:20:46",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "yicr",
    "github_project": "aws-ec2-instance-running-scheduler",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "aws-ec2-instance-running-scheduler"
}
        
Elapsed time: 0.27323s