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.18.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6658ee86114c46ed5b50b68e658cb7b1d663c7a85f7ef6761bcd818970307508 |
|
MD5 | 896aa259ebb92e00542b5d9ed13fb1eb |
|
BLAKE2b-256 | b9074150f113ca5e5f6cc10827e343cee89e88901a599d982219a67e7a970e74 |
Close
Hashes for gammarer.aws_rds_database_running_scheduler-0.3.18-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8cdf9ae37880c0e291595fa0d378b76a511b9d9533a9a0710eb7c9aa2eaee4e4 |
|
MD5 | 0af60d3ee9a0eb2c914a07689268bd8d |
|
BLAKE2b-256 | 180555f5b154ac69b4123b62bc4c8fda27cab9a71aa12964e591efb60b0597c9 |