AWS EC2 AutoScaling Instance Running Scheduler
Project description
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.
Project details
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 aws-ec2-auto-scaling-instance-running-scheduler-0.2.5.tar.gz
.
File metadata
- Download URL: aws-ec2-auto-scaling-instance-running-scheduler-0.2.5.tar.gz
- Upload date:
- Size: 31.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3df11a66e9519707947a9b25518846b18dab2a14d7f9267c74c2fc7d3660fbac |
|
MD5 | e2a5b5ca1a6f492d141231a121567acd |
|
BLAKE2b-256 | 0ff3c87f7505e5f2947972299f24de3bf182a7012d6e5314b19ff61321ea8ebf |
File details
Details for the file aws_ec2_auto_scaling_instance_running_scheduler-0.2.5-py3-none-any.whl
.
File metadata
- Download URL: aws_ec2_auto_scaling_instance_running_scheduler-0.2.5-py3-none-any.whl
- Upload date:
- Size: 30.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b432d7a932a446ffa832d27e589d0da5951e923cd796aa963b87e9591c8588c |
|
MD5 | 84b5f39758bb1cb8f7d1bd85d459522e |
|
BLAKE2b-256 | 93db1e2309dcfec2bd828b799369d4bf130a01fbf2a4b090e0eb61795e21753f |