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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5595f7b6a54a6290ef0d077a04464072c0d824f4049e6945d0dde85c524e6011 |
|
MD5 | 9da2f43d037f3ba104e048386b70e4c4 |
|
BLAKE2b-256 | 8b5364c795585e3c75a43692f1570f3a091cbe43b5d3f5661c6484faf1e1bc2f |
Close
Hashes for aws_rds_database_running_scheduler-0.3.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 172fa7338cfc4db1f0750cc219e3697de3492202a7efc2b89d1fa09a727b7515 |
|
MD5 | 23803b8203c5b3d343cdf34eeb168c22 |
|
BLAKE2b-256 | 5576cd4d14a2aee57f3c07d402ab466aef42b250d9e5f313e25c5ed08c7ae5cf |