gammarer.aws-ec2-auto-scaling-instance-running-scheduler


Namegammarer.aws-ec2-auto-scaling-instance-running-scheduler JSON
Version 1.1.16 PyPI version JSON
download
home_pagehttps://github.com/gammarer/aws-ec2-auto-scaling-instance-running-scheduler.git
SummaryAWS EC2 AutoScaling Instance Running Scheduler
upload_time2024-05-01 16:25:38
maintainerNone
docs_urlNone
authoryicr<yicr@users.noreply.github.com>
requires_python~=3.8
licenseApache-2.0
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            [![GitHub](https://img.shields.io/github/license/yicr/aws-ec2-auto-scaling-instance-running-scheduler?style=flat-square)](https://github.com/yicr/aws-ec2-auto-scaling-instance-running-scheduler/blob/main/LICENSE)
[![npm (scoped)](https://img.shields.io/npm/v/@gammarer/aws-ec2-auto-scaling-instance-running-scheduler?style=flat-square)](https://www.npmjs.com/package/@gammarer/aws-ec2-auto-scaling-instance-running-scheduler)
[![PyPI](https://img.shields.io/pypi/v/gammarer.aws-ec2-auto-scaling-instance-running-scheduler?style=flat-square)](https://pypi.org/project/gammarer.aws-ec2-auto-scaling-instance-running-scheduler/)
[![Nuget](https://img.shields.io/nuget/v/Gammarer.CDK.AWS.Ec2AutoScalingInstanceRunningScheduler?style=flat-square)](https://www.nuget.org/packages/Gammarer.CDK.AWS.Ec2AutoScalingInstanceRunningScheduler/)
[![Sonatype Nexus (Releases)](https://img.shields.io/nexus/r/com.gammarer/aws-ec2-auto-scaling-instance-running-scheduler?server=https%3A%2F%2Fs01.oss.sonatype.org%2F&style=flat-square)](https://s01.oss.sonatype.org/content/repositories/releases/com/gammarer/aws-ec2-auto-scaling-instance-running-scheduler/)
[![GitHub Workflow Status (branch)](https://img.shields.io/github/actions/workflow/status/yicr/aws-ec2-auto-scaling-instance-running-scheduler/release.yml?branch=main&label=release&style=flat-square)](https://github.com/yicr/aws-ec2-auto-scaling-instance-running-scheduler/actions/workflows/release.yml)
[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/yicr/aws-ec2-auto-scaling-instance-running-scheduler?sort=semver&style=flat-square)](https://github.com/yicr/aws-ec2-auto-scaling-instance-running-scheduler/releases)

# 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 @gammarer/aws-ec2-auto-scaling-instance-running-scheduler
# or
yarn add @gammarer/aws-ec2-auto-scaling-instance-running-scheduler
```

### Python

```shell
pip install gammarer.aws-ec2-auto-scaling-instance-running-scheduler
```

### C# / .NET

```shell
dotnet add package Gammarer.CDK.AWS.Ec2AutoScalingInstanceRunningScheduler
```

### Java

Add the following to pom.xml:

```xml
<dependency>
  <groupId>com.gammarer</groupId>
  <artifactId>aws-ec2-auto-scaling-instance-running-scheduler</artifactId>
</dependency>
```

## Example

```python
import { Ec2AutoScalingInstanceRunningScheduler } from '@gammarer/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/gammarer/aws-ec2-auto-scaling-instance-running-scheduler.git",
    "name": "gammarer.aws-ec2-auto-scaling-instance-running-scheduler",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "~=3.8",
    "maintainer_email": null,
    "keywords": null,
    "author": "yicr<yicr@users.noreply.github.com>",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/5b/dc/c126a01ff7f1321f5ebcb928a950b7f909fd6e7959e4982fc3f5fd52fe8c/gammarer.aws-ec2-auto-scaling-instance-running-scheduler-1.1.16.tar.gz",
    "platform": null,
    "description": "[![GitHub](https://img.shields.io/github/license/yicr/aws-ec2-auto-scaling-instance-running-scheduler?style=flat-square)](https://github.com/yicr/aws-ec2-auto-scaling-instance-running-scheduler/blob/main/LICENSE)\n[![npm (scoped)](https://img.shields.io/npm/v/@gammarer/aws-ec2-auto-scaling-instance-running-scheduler?style=flat-square)](https://www.npmjs.com/package/@gammarer/aws-ec2-auto-scaling-instance-running-scheduler)\n[![PyPI](https://img.shields.io/pypi/v/gammarer.aws-ec2-auto-scaling-instance-running-scheduler?style=flat-square)](https://pypi.org/project/gammarer.aws-ec2-auto-scaling-instance-running-scheduler/)\n[![Nuget](https://img.shields.io/nuget/v/Gammarer.CDK.AWS.Ec2AutoScalingInstanceRunningScheduler?style=flat-square)](https://www.nuget.org/packages/Gammarer.CDK.AWS.Ec2AutoScalingInstanceRunningScheduler/)\n[![Sonatype Nexus (Releases)](https://img.shields.io/nexus/r/com.gammarer/aws-ec2-auto-scaling-instance-running-scheduler?server=https%3A%2F%2Fs01.oss.sonatype.org%2F&style=flat-square)](https://s01.oss.sonatype.org/content/repositories/releases/com/gammarer/aws-ec2-auto-scaling-instance-running-scheduler/)\n[![GitHub Workflow Status (branch)](https://img.shields.io/github/actions/workflow/status/yicr/aws-ec2-auto-scaling-instance-running-scheduler/release.yml?branch=main&label=release&style=flat-square)](https://github.com/yicr/aws-ec2-auto-scaling-instance-running-scheduler/actions/workflows/release.yml)\n[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/yicr/aws-ec2-auto-scaling-instance-running-scheduler?sort=semver&style=flat-square)](https://github.com/yicr/aws-ec2-auto-scaling-instance-running-scheduler/releases)\n\n# 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 @gammarer/aws-ec2-auto-scaling-instance-running-scheduler\n# or\nyarn add @gammarer/aws-ec2-auto-scaling-instance-running-scheduler\n```\n\n### Python\n\n```shell\npip install gammarer.aws-ec2-auto-scaling-instance-running-scheduler\n```\n\n### C# / .NET\n\n```shell\ndotnet add package Gammarer.CDK.AWS.Ec2AutoScalingInstanceRunningScheduler\n```\n\n### Java\n\nAdd the following to pom.xml:\n\n```xml\n<dependency>\n  <groupId>com.gammarer</groupId>\n  <artifactId>aws-ec2-auto-scaling-instance-running-scheduler</artifactId>\n</dependency>\n```\n\n## Example\n\n```python\nimport { Ec2AutoScalingInstanceRunningScheduler } from '@gammarer/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": "1.1.16",
    "project_urls": {
        "Homepage": "https://github.com/gammarer/aws-ec2-auto-scaling-instance-running-scheduler.git",
        "Source": "https://github.com/gammarer/aws-ec2-auto-scaling-instance-running-scheduler.git"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b98021b1a261d05bd7f1f83098c1a7b52cf4cf9c5979bb0a624e50f8654de445",
                "md5": "e6d67b00eb9e7daa16a7b53368fe287e",
                "sha256": "f3d885c94b4a3f12f7232fcbabfdd7e829b86a3f63272ae6398a0e74dd634b7f"
            },
            "downloads": -1,
            "filename": "gammarer.aws_ec2_auto_scaling_instance_running_scheduler-1.1.16-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "e6d67b00eb9e7daa16a7b53368fe287e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "~=3.8",
            "size": 32681,
            "upload_time": "2024-05-01T16:25:36",
            "upload_time_iso_8601": "2024-05-01T16:25:36.654708Z",
            "url": "https://files.pythonhosted.org/packages/b9/80/21b1a261d05bd7f1f83098c1a7b52cf4cf9c5979bb0a624e50f8654de445/gammarer.aws_ec2_auto_scaling_instance_running_scheduler-1.1.16-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5bdcc126a01ff7f1321f5ebcb928a950b7f909fd6e7959e4982fc3f5fd52fe8c",
                "md5": "b88fec6239e7ee7459d6f02074c97afa",
                "sha256": "70668a40d36d0d19e2ccb4590dd608379f16d068a69bf5562895c56f0664e94c"
            },
            "downloads": -1,
            "filename": "gammarer.aws-ec2-auto-scaling-instance-running-scheduler-1.1.16.tar.gz",
            "has_sig": false,
            "md5_digest": "b88fec6239e7ee7459d6f02074c97afa",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "~=3.8",
            "size": 33466,
            "upload_time": "2024-05-01T16:25:38",
            "upload_time_iso_8601": "2024-05-01T16:25:38.595589Z",
            "url": "https://files.pythonhosted.org/packages/5b/dc/c126a01ff7f1321f5ebcb928a950b7f909fd6e7959e4982fc3f5fd52fe8c/gammarer.aws-ec2-auto-scaling-instance-running-scheduler-1.1.16.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-01 16:25:38",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "gammarer",
    "github_project": "aws-ec2-auto-scaling-instance-running-scheduler",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "gammarer.aws-ec2-auto-scaling-instance-running-scheduler"
}
        
Elapsed time: 0.78435s