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.
Metadata
Release files for gammarer.aws-ec2-auto-scaling-instance-running-scheduler 1.1.16
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| gammarer.aws-ec2-auto-scaling-instance-running-scheduler-1.1.16.tar.gz | 33.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gammarer.aws_ec2_auto_scaling_instance_running_scheduler-1.1.16-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 66.1 kB
Release files / gammarer.aws-ec2-auto-scaling-instance-running-scheduler-1.1.16.tar.gz
| Download URL | gammarer.aws-ec2-auto-scaling-instance-running-scheduler-1.1.16.tar.gz |
|---|---|
| Size | 33.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
70668a40d36d0d19e2ccb4590dd608379f16d068a69bf5562895c56f0664e94c
|
|
BLAKE2b-256 checksum How to use checksums |
5bdcc126a01ff7f1321f5ebcb928a950b7f909fd6e7959e4982fc3f5fd52fe8c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Release files / gammarer.aws_ec2_auto_scaling_instance_running_scheduler-1.1.16-py3-none-any.whl
| Download URL | gammarer.aws_ec2_auto_scaling_instance_running_scheduler-1.1.16-py3-none-any.whl |
|---|---|
| Size | 32.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f3d885c94b4a3f12f7232fcbabfdd7e829b86a3f63272ae6398a0e74dd634b7f
|
|
BLAKE2b-256 checksum How to use checksums |
b98021b1a261d05bd7f1f83098c1a7b52cf4cf9c5979bb0a624e50f8654de445
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|