AWS RDS Database Running Scheduler
Project description
AWS RDS Database Running Scheduler
This is an AWS CDK Construct to make RDS Database running schedule (only running while working hours(start/stop)).
Fixed
- RDS Aurora Cluster
- RDS Instance
Resources
This construct creating resource list.
- EventBridge Scheduler execution role
- EventBridge Scheduler
Install
TypeScript
npm install @gammarer/aws-rds-database-running-scheduler
# or
yarn add @gammarer/aws-rds-database-running-scheduler
Python
pip install gammarer.aws-rds-database-running-scheduler
Example
npm install @gammarer/aws-rds-database-running-scheduler
import { RdsDatabaseRunningScheduler, Type } from '@gammarer/aws-rds-database-running-scheduler';
new RdsDatabaseRunningScheduler(stack, 'RdsDatabaseRunningScheduler', {
type: Type.CLUSTER, // TYPE.CLUSTER or TYPE.INSTANCE
identifiers: {
['db-cluster-1a']: { // cluster identirier
startSchedule: {
timezone: 'Asia/Tokyo',
minute: '55',
hour: '8',
week: 'MON-FRI',
},
stopSchedule: {
timezone: 'Asia/Tokyo',
minute: '5',
hour: '19',
week: 'MON-FRI',
},
},
},
})
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
Close
Hashes for gammarer.aws-rds-database-running-scheduler-0.3.14.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5e741fb2f5f36ffbee47eb69ad10eee03626ca2a0d01e4b65232e4607e56979 |
|
MD5 | bc0c24829d43764cacf63b1b1a7db285 |
|
BLAKE2b-256 | a12b97a3f1c1732729e7b07c3b4f469d0566fa43c234d29ab53f0fd7773b99f4 |
Close
Hashes for gammarer.aws_rds_database_running_scheduler-0.3.14-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b6f9a539c33fea6e75603a6741828c48f68b23bc98f46cb3b463066b4082dc2 |
|
MD5 | f86e344375694b090f6ad5e581ae8917 |
|
BLAKE2b-256 | 8e21c91beafb2a93cb039f355568e7e699a0f0b531a9e8c331f904d2b8807142 |