Skip to main content

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

npm install aws-ec2-auto-scaling-instance-running-scheduler

or

yarn add aws-ec2-auto-scaling-instance-running-scheduler

Python

pip install aws-ec2-auto-scaling-instance-running-scheduler

Example

npm install aws-ec2-auto-scaling-instance-running-scheduler
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.

Metadata

Release files for aws-ec2-auto-scaling-instance-running-scheduler 0.2.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aws-ec2-auto-scaling-instance-running-scheduler 0.2.5
File Size Uploaded Provenance Actions
aws-ec2-auto-scaling-instance-running-scheduler-0.2.5.tar.gz 31.4 kB Without provenance Details for aws-ec2-auto-scaling-instance-running-scheduler-0.2.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for aws-ec2-auto-scaling-instance-running-scheduler 0.2.5
File Interpreter ABI Platform Actions
aws_ec2_auto_scaling_instance_running_scheduler-0.2.5-py3-none-any.whl Python 3 none any Details for aws_ec2_auto_scaling_instance_running_scheduler-0.2.5-py3-none-any.whl

Total release size: 62.0 kB

Release files / aws-ec2-auto-scaling-instance-running-scheduler-0.2.5.tar.gz

Download URL aws-ec2-auto-scaling-instance-running-scheduler-0.2.5.tar.gz
Size 31.4 kB
Tags Source
SHA-256 checksum
How to use checksums
3df11a66e9519707947a9b25518846b18dab2a14d7f9267c74c2fc7d3660fbac
BLAKE2b-256 checksum
How to use checksums
0ff3c87f7505e5f2947972299f24de3bf182a7012d6e5314b19ff61321ea8ebf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / aws_ec2_auto_scaling_instance_running_scheduler-0.2.5-py3-none-any.whl

Download URL aws_ec2_auto_scaling_instance_running_scheduler-0.2.5-py3-none-any.whl
Size 30.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2b432d7a932a446ffa832d27e589d0da5951e923cd796aa963b87e9591c8588c
BLAKE2b-256 checksum
How to use checksums
93db1e2309dcfec2bd828b799369d4bf130a01fbf2a4b090e0eb61795e21753f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Security for aws-ec2-auto-scaling-instance-running-scheduler 0.2.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page