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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1124cd28dc6e75fd925364e3fd86c3e877675e03f7fcbfc87924954809e6bca |
|
MD5 | c81f573544a92eb2e4bbfda487e8a4b8 |
|
BLAKE2b-256 | 44cb1ee4997ff710d298abef37942df83e36d37a5736fd7ed67e5c0bdb50d0b1 |
Close
Hashes for aws_rds_database_running_scheduler-0.3.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa94ab43b880767affec73ce02643167f96ffa7f033b6f06f49a4c304c2f2afb |
|
MD5 | abc5fff4f918f3c75203e63958e2af8a |
|
BLAKE2b-256 | 9dccda6e3bda0f7d4920687880fb5a879da714b26be8011e208548c504133139 |