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.22.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1234ba7ad4649d75f3c11f09eb0f3895c02fe35965ad4bb87618abd8c9eabd61 |
|
MD5 | b5f2166b304b5f1124763cfb996a7b87 |
|
BLAKE2b-256 | c282d773c8a33d9c06874bcbf250ef3d18138642e76df15611109b62fe8052d7 |
Close
Hashes for gammarer.aws_rds_database_running_scheduler-0.3.22-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f67c6e43026224472088f504b16ebfb8b1c5beeb2301eeef352f868cc28bfd57 |
|
MD5 | bea505dee5acf46946076cd21e4c7af4 |
|
BLAKE2b-256 | 582449bfe65764c9889d4e7c141e3cf41f4c8a76f2050ea3e3c25ae6d1a4369c |