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.20.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8afab2b0c98d63e728bd2a1b8b65e056c56b013dbab07d8f44eea633d0de587f |
|
MD5 | 0c0ee390216648bec5f5ed175e5e3f09 |
|
BLAKE2b-256 | c55adb33f3cc2b33bad2518bb8986ef2688e195cb2bd27624ff4f665fca33beb |
Close
Hashes for gammarer.aws_rds_database_running_scheduler-0.3.20-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20cd8f60e63791ad1abdd93cea87dd9a60fab6000f255e8ecce0714bef4a9757 |
|
MD5 | 5ab7263d69731edcc5be9f61971b8946 |
|
BLAKE2b-256 | 322f44d5f880b84f898fc69011d946e906f670654e8f4e2c8505505da35777ab |