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.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89e2cc7b1322453cae9c13ad984ff990e68d4a3ffb68c8927b1d84bc640a8c99 |
|
MD5 | d590fba91b79b47d90c4d6ab922a9a29 |
|
BLAKE2b-256 | 8cabdc4df425b5751376819ea16a9b0771bcea2d7723bc20264c101b962ae6f1 |
Close
Hashes for gammarer.aws_rds_database_running_scheduler-0.3.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79c197edddc5f86360391d787e0d03a886cbf0f466af0a760398475939522db1 |
|
MD5 | 37098a0dfe304ed7f6f155146ab5fb43 |
|
BLAKE2b-256 | 99dd02cd3e2fb545b88cb0ef00b4b3d4e91a887b36d7b05e3664cc7e6c394e97 |