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 aws-rds-database-running-scheduler
or
yarn add aws-rds-database-running-scheduler
Python
pip install aws-rds-database-running-scheduler
Example
npm install aws-rds-database-running-scheduler
import { RdsDatabaseRunningScheduler, Type } from '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
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 aws-rds-database-running-scheduler-0.3.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d68108d72451d7a34188697734f2a445a80b9d5577e066f20199806ca5520971 |
|
MD5 | 611ff755b61ce7a0a392cdf901ddc5a5 |
|
BLAKE2b-256 | 6d2a373cbe7517523987f882a227194864d1a93852f1b6a71ccb82e8ed314b5c |
Close
Hashes for aws_rds_database_running_scheduler-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f57afc2fa83cc22e33977181090c9b079036128c530833db2f370c9d391c205c |
|
MD5 | 49742f134f23db83e8833ee644d25a62 |
|
BLAKE2b-256 | 7b1d5cd4b58455e4779d3797310b7673376f4145e0a1deea9952e04b26899ba3 |