Skip to main content

AWS EC2 AutoScaling Instance Running Scheduler

Project description

GitHub npm (scoped) PyPI Nuget Sonatype Nexus (Releases) GitHub Workflow Status (branch) GitHub release (latest SemVer)

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

Python

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

C# / .NET

dotnet add package Gammarer.CDK.AWS.Ec2AutoScalingInstanceRunningScheduler

Java

Add the following to pom.xml:

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

Example

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.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

File details

Details for the file gammarer.aws-ec2-auto-scaling-instance-running-scheduler-1.1.16.tar.gz.

File metadata

File hashes

Hashes for gammarer.aws-ec2-auto-scaling-instance-running-scheduler-1.1.16.tar.gz
Algorithm Hash digest
SHA256 70668a40d36d0d19e2ccb4590dd608379f16d068a69bf5562895c56f0664e94c
MD5 b88fec6239e7ee7459d6f02074c97afa
BLAKE2b-256 5bdcc126a01ff7f1321f5ebcb928a950b7f909fd6e7959e4982fc3f5fd52fe8c

See more details on using hashes here.

File details

Details for the file gammarer.aws_ec2_auto_scaling_instance_running_scheduler-1.1.16-py3-none-any.whl.

File metadata

File hashes

Hashes for gammarer.aws_ec2_auto_scaling_instance_running_scheduler-1.1.16-py3-none-any.whl
Algorithm Hash digest
SHA256 f3d885c94b4a3f12f7232fcbabfdd7e829b86a3f63272ae6398a0e74dd634b7f
MD5 e6d67b00eb9e7daa16a7b53368fe287e
BLAKE2b-256 b98021b1a261d05bd7f1f83098c1a7b52cf4cf9c5979bb0a624e50f8654de445

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page